/**
 * Nikoala Videos Frontend CSS - Design 2
 */

/* Main container */
.nikoala-video-carousel-wrapper.design2 {
    position: relative;
    margin: 30px 0;
    width: 100%;
}

/* Title styling */
.nikoala-video-carousel-wrapper.design2 .nikoala-video-carousel-title {
    margin-bottom: 15px;
    text-align: center;
    font-size: 24px;
}

/* Carousel container */
.nikoala-video-carousel-wrapper.design2 .nikoala-video-carousel {
    position: relative;
    width: 100%;
}

/* Video thumbnails container */
.nikoala-video-carousel-wrapper.design2 .video-carousel-thumbnails {
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-color: #dddddd #f5f5f5;
    align-items: center;
}


/* Individual video item */
.nikoala-video-carousel-wrapper.design2 .video-item {
    position: relative;
    flex: 0 0 auto;
    cursor: pointer;
    transition: transform 0.3s ease, flex 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.nikoala-video-carousel-wrapper.design2 .video-item.active {
    flex: 0 0 auto;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    align-self: center;
}

/* Video element styling */
.nikoala-video-carousel-wrapper.design2 .video-item video {
    width: auto;
    max-height: 480px;
    object-fit: contain;
    border-radius: 12px;
    display: block;
    transition: max-height 0.3s ease;
}

/* Increase max-height for active videos */
.nikoala-video-carousel-wrapper.design2 .video-item.active video {
    max-height: 540px; /* Increased height for active videos */
}

/* Play icon */
.nikoala-video-carousel-wrapper.design2 .video-play-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.nikoala-video-carousel-wrapper.design2 .video-play-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* Video title */
.nikoala-video-carousel-wrapper.design2 .video-item .video-curtain {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.nikoala-video-carousel-wrapper.design2 .video-item.active .video-curtain {
    opacity: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nikoala-video-carousel-wrapper.design2 .video-item {
        flex: 0 0 200px;
    }
    
    .nikoala-video-carousel-wrapper.design2 .video-item.active {
        flex: 0 0 300px;
    }
    
    .nikoala-video-carousel-wrapper.design2 .video-item video {
        max-height: 250px;
    }
}

@media (max-width: 480px) {
    .nikoala-video-carousel-wrapper.design2 .video-item {
        flex: 0 0 160px;
    }
    
    .nikoala-video-carousel-wrapper.design2 .video-item.active {
        flex: 0 0 240px;
    }
    
    .nikoala-video-carousel-wrapper.design2 .video-item video {
        max-height: 200px;
    }
}