/**
 * Styles for the Geely video lightbox
 * These styles create a full-screen modal for displaying videos when clicking on video thumbnails
 * Version: 1.0.3 - Updated to only target #exterior-interior-interior-col carousel
 */

/* Full-screen lightbox container */
.geely-video-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Video content container */
.geely-video-content {
    position: relative;
    width: 80%;
    max-width: 1200px;
}

/* Video player */
.geely-video-player {
    width: 100%;
    max-height: 80vh;
    display: block;
}

/* Close button */
.geely-video-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    background: transparent;
    border: none;
    font-size: 30px;
    cursor: pointer;
    z-index: 10000;
}

/* Video caption */
.geely-video-caption {
    color: white;
    padding: 15px 0;
    text-align: center;
    font-size: 16px;
}

/* SCOPED STYLES - Only target carousel within #exterior-interior-interior-col */

/* Make sure the figure container has position relative for the overlay */
#exterior-interior-interior-col .pp-image-carousel-item a[href*="thumbnail-video-"] .swiper-slide-inner {
    position: relative; /* Ensure position is relative for absolute positioning */
}

/* Add play button overlay directly on the image container (figure) */
#exterior-interior-interior-col .pp-image-carousel-item a[href*="thumbnail-video-"] .swiper-slide-inner::before {
    /* Base positioning */
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* Button sizing and appearance */
    width: 70px;
    height: 70px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    z-index: 3; /* Higher than image overlay to ensure visibility */
    pointer-events: none;
    
    /* Play icon configuration */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
    background-size: 32px;
    background-position: 54% center; /* Slight adjustment for visual centering of triangle icon */
    background-repeat: no-repeat;
}

/* Remove the original play button positioning on the outer container */
#exterior-interior-interior-col .pp-image-carousel-item a[href*="thumbnail-video-"] .pp-carousel-image-container::before {
    display: none;
}