.yt-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.yt-swiper-522ec85d {
    padding-bottom: 40px; /* space for pagination if needed */
}

.yt-carousel-slide .yt-thumbnail-wrapper {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yt-thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.yt-carousel-slide:hover .yt-thumbnail-image {
    opacity: 1;
}

.yt-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.yt-carousel-slide:hover .yt-play-icon {
    background: rgba(255, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

.swiper-wrapper {
    -webkit-transition-timing-function: linear !important; 
    transition-timing-function: linear !important; 
}

/* Lightbox Styles */
.yt-lightbox-overlay-522ec85d {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.yt-lightbox-overlay-522ec85d.active {
    opacity: 1;
    visibility: visible;
}

.yt-lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    width: 100%;
    aspect-ratio: 16/9; /* Fix to 16:9 ratio */
    display: flex;
    align-items: center;
    justify-content: center;
}

.yt-iframe-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.yt-lightbox-content iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.yt-lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    color: white;
    font-size: 40px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    line-height: 1;
    z-index: 10;
}

.yt-lightbox-close:hover {
    color: #ff0000;
}