/* ========================================
   VIDEO POPUP
   ======================================== */

.video-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(32, 46, 59, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-popup-overlay.is-active {
    display: flex;
}

.video-popup-container {
    position: relative;
    background-color: #fff;
    width: 100%;
    max-width: 800px;
    border-radius: 4px;
    overflow: hidden;
}

.video-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    color: #202e3b;
    z-index: 10;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.video-popup-close:hover {
    opacity: 0.6;
}

/* Ratio 16:9 */
.video-popup-player {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-popup-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

@media (max-width: 767px) {
    .video-popup-overlay {
        padding: 10px;
    }
}
