/* Video Popup Overlay and Controls */
.closer_videopopup {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 24px;
    text-align: center;
    cursor: pointer;
    background: none;
    border: none;
    color: #ffffff;
    z-index: 100003;
    /* Ensure it's above the video and overlay */
}

.video-overlay {
    position: absolute;
    z-index: 100001;
    /* Ensure the overlay is behind the video */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #000000;
    opacity: 0.9;
}

.video-popup {
    position: fixed;
    z-index: 100001;
    /* Ensure the container is above the overlay */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: none;
    /* Start hidden */
    text-align: center;
    background: none;
    display: flex;
    /* Use flexbox for centering */
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    /* Center vertically */
}

/* Ensure the video element is centered and correctly positioned */
video {
    position: relative;
    z-index: 100002;
    /* Above the overlay, below the close button */
    width: 100%;
    /* Ensure it scales within its container */
    height: auto;
    /* Maintain aspect ratio */
    max-width: 90vw;
    /* 70% of the viewport width */
    max-height: 80vh;
    /* 80% of the viewport height */
}