/* vhs-popup.css - Basis mit automatischer Größe & 50% Limit */

.vhs-modal-overlay {
    display: none;
    /* Wird per JS auf 'flex' geschaltet */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 999999;

    /* Zentriert die gesamte Konstruktion auf dem Bildschirm */
    justify-content: center;
    align-items: center;
}

/* Der Wrapper hält Button und Box zusammen */
.vhs-modal-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Button rechtsbündig zur Box */
    max-width: 50vw;
    /* Die gesamte Konstruktion ist max 50% breit */
    max-height: 50vh;
    /* Die gesamte Konstruktion ist max 50% hoch */
}

/* Der Schließen-Button */
.vhs-modal-close-btn {
    background: var(--ldgroup-color-light, #e67e22);
    color: white;
    border: none;
    padding: 6px 15px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px 5px 0 0;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* Die Box, die das Bild enthält */
.vhs-modal-frame {
    background: #1a1a1a;
    border: 2px solid var(--ldgroup-color-light, #e67e22);
    border-radius: 5px 0 5px 5px;
    /* Passend zum Button oben rechts */
    overflow: auto;
    /* Scrollbalken erscheinen automatisch */
    width: 100%;
    /* Nutzt den Platz des Wrappers */
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

/* Das Bild in seiner natürlichen Größe */
.vhs-modal-image {
    display: block;
    /* Wir setzen KEINE max-width, damit das Bild so groß bleibt wie es ist
       und die Scrollbalken im Frame triggert */
}

/* Schickere Scrollbalken (optional) */
.vhs-modal-frame::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.vhs-modal-frame::-webkit-scrollbar-thumb {
    background: var(--ldgroup-color-light, #e67e22);
    border-radius: 5px;
}

.vhs-modal-frame::-webkit-scrollbar-track {
    background: #222;
}