/* Video Gallery Item Styles */

/* Play button overlay for video thumbnails */
.gallery article.video-item .image::after {
    content: '\f04b'; /* FontAwesome play icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4em;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    transition: all 0.3s ease;
    padding-left: 0.1em; /* Slight offset to visually center play triangle */
}

.gallery article.video-item .image:hover::after {
    color: rgba(255, 255, 255, 1);
    transform: translate(-50%, -50%) scale(1.15);
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.9);
}

/* Separate Video Lightbox - matches template's image lightbox style */
.video-lightbox-custom {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.video-lightbox-custom.active {
    display: flex;
    opacity: 1;
}

.video-lightbox-custom .video-lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-lightbox-custom .video-container {
    width: 100%;
    position: relative;
}

/* Close button - positioned in top-right corner of viewport */
.video-lightbox-custom .video-lightbox-close {
    content: '';
    display: block;
    position: fixed;
    top: 0.5rem;
    right: 0.5rem;
    width: 4rem;
    height: 4rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='64px' height='64px' viewBox='0 0 64 64' zoomAndPan='disable'%3E%3Cstyle%3Eline %7Bstroke: %23ffffff%3Bstroke-width: 1.5px%3B%7D%3C/style%3E%3Cline x1='20' y1='20' x2='44' y2='44' /%3E%3Cline x1='20' y1='44' x2='44' y2='20' /%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 3rem;
    z-index: 10003;
    transition: opacity 0.25s ease;
}

.video-lightbox-custom .video-lightbox-close:hover {
    opacity: 0.5;
}

/* Video container styling */
.video-lightbox-custom iframe,
.video-lightbox-custom video {
    max-width: 100%;
    max-height: 85vh;
    display: block;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .gallery article.video-item .image::after {
        font-size: 3em;
    }
    
    .video-lightbox-custom .video-lightbox-content {
        width: 95%;
    }
    
    .video-lightbox-custom iframe,
    .video-lightbox-custom video {
        max-height: 70vh;
    }
}
