/* vhs-popup.css - Basis mit automatischer Größe & 50% Limit */
/*
 * ============================================================================
 * LINE DANCE CLUB - COUNTRY MEETS MODERN (STYLESHEET)
 * ============================================================================
 * 
 * @package     ldgroup
 * @module      Design / Styles
 * @component   vhs-popup
 * 
 * @description ?
 * 
 * @status      Refactoring
 * @open        Was brauchen wir
 * @ticket      #90
 * @version     1.0.0
 * @created     2026-07-04
 * @last_change 2026-07-04
 * 
 * @export-to-schorsch
 * ============================================================================
 */
/** Ende LDC Header */
.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;
    background: transparent;
}

/* 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;
    max-width: 70vh; /* Begrenzt auf 80% der Bildschirmhöhe */
    max-height: 70vh; /* Begrenzt auf 80% der Bildschirmhöhe */
    background: transparent;
    overflow: auto; /* Falls das Bild doch zu groß ist, kann man scrollen */
}

/* 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;
}