﻿/* Overlay background */
.video-overlay {
    position: fixed;
    inset: 0; /* top:0; right:0; bottom:0; left:0; */
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 9999;
}

    /* Visible state */
    .video-overlay.is-visible {
        opacity: 1;
        pointer-events: auto;
    }

/* Popup container */
.video-popup {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

/* Close "X" */
.video-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    font-size: 20px;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    background: #ffffff;
}

/* Video itself */
#popupVideo {
    display: block;
    max-width: 90vw;
    max-height: 90vh;
    width: auto; /* lets video decide based on aspect ratio */
    height: auto; /* same here */
    background: #000; /* black bars where needed */
    object-fit: contain; /* ensures full video visible */
}
