/* Video Modal Overlay */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    /* Higher than splash-cursor */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal-overlay.visible {
    opacity: 1;
}

/* Video Modal Content Container */
.video-modal-content {
    position: relative;
    width: 60vw;
    max-width: 1200px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.video-modal-overlay.visible .video-modal-content {
    transform: scale(1);
}

/* 16:9 Aspect Ratio Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Close Button */
.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 1;
    transition: opacity 0.2s ease;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
}

.video-modal-close:hover {
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-modal-content {
        width: 90vw;
    }

    .video-modal-close {
        top: -35px;
        font-size: 35px;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .video-modal-content {
        width: 95vw;
        border-radius: 8px;
    }

    .video-modal-close {
        top: -30px;
        font-size: 30px;
        width: 30px;
        height: 30px;
    }
}