/* Video Lightbox Styles */

/* Lightbox overlay */
.video-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    justify-content: center;
    align-items: center;
}

.video-lightbox.active {
    display: flex;
}

/* Lightbox content container */
.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    background: #000;
}

/* Video wrapper for responsive 16:9 aspect ratio */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Close button */
.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    z-index: 9999999;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #ccc;
}

/* Caption */
.lightbox-caption {
    color: white;
    padding: 15px;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    font-size: 14px;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .lightbox-content {
        width: 95%;
    }
    
    .lightbox-close {
        top: -35px;
        font-size: 30px;
    }
    
    .lightbox-caption {
        padding: 10px;
        font-size: 13px;
    }
}

/* Play button overlay */
.video-thumbnail-wrapper {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.video-thumbnail-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;

    /* Updated to official style-guide orange */
    background-color: rgba(212, 127, 0, 0.85); /* #D47F00 */

    border-radius: 50%;
    transition: all 0.3s ease;
    pointer-events: none;
}

.video-thumbnail-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 25px;

    /* Keeping the dark blue play triangle */
    border-color: transparent transparent transparent #0a2942;

    z-index: 1;
    pointer-events: none;
}

.video-thumbnail-wrapper:hover::after {
    background-color: rgba(212, 127, 0, 1); /* #D47F00 */
    transform: translate(-50%, -50%) scale(1.1);
}

@media (max-width: 768px) {
    .video-thumbnail-wrapper::after {
        width: 60px;
        height: 60px;
    }
    
    .video-thumbnail-wrapper::before {
        border-width: 12px 0 12px 20px;
    }
}
