.image-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden; /* Verhindert normales Scrollen des Bodys */
    cursor: grab;
}

.image-popup-overlay:active {
    cursor: grabbing;
}

/* Der Container für das Bild, um Transformationen zu kapseln */
.image-popup-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    touch-action: none; /* Wichtig für Touch-Interaktion */
}

.image-popup-img {
    max-width: 90%;
    max-height: 90%;
    user-select: none;
    pointer-events: none; /* Verhindert Standard-Browser-Drag-Verhalten */
    transition: transform 0.1s ease-out; /* Sanfterer Zoom */
}

/* Schließen-Button */
.image-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10000;
    line-height: 1;
}