/* Main Container */
.logo-video-carousel-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Video Wrapper */
.logo-video-carousel-video-wrapper {
    width: 100%;
    margin-bottom: 40px;
    text-align: center;
}

/* Video Element */
.logo-video-carousel-video {
    aspect-ratio: 9/6;
    width: 100%;
    max-width: 420px !important;
    margin: 0 auto !important;
    background: #000;
    display: none; /* Hidden by default, shown when video is available */
}

/* Carousel Container */
.logo-video-carousel {
    width: 100%;
    padding: 20px 0;
    position: relative;
}

/* Slide */
.logo-video-carousel-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

/* Logo Container */
.logo-video-carousel-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

/* Logo Image */
.logo-video-carousel-logo img {
    max-width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

/* Navigation Arrows */
.logo-video-carousel .swiper-button-next,
.logo-video-carousel .swiper-button-prev {
    color: #333;
    background: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: absolute;
    /* top: 50%;
    transform: translateY(-50%); */
    z-index: 10;
}

.logo-video-carousel .swiper-button-next {
    right: 10px;
}

.logo-video-carousel .swiper-button-prev {
    left: 10px;
}

.logo-video-carousel .swiper-button-next::after,
.logo-video-carousel .swiper-button-prev::after {
    font-size: 20px;
    font-weight: bold;
}

/* Pagination */
.logo-video-carousel .swiper-pagination {
    position: relative;
    margin-top: 20px;
}

.logo-video-carousel .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #ccc;
    opacity: 1;
    margin: 0 5px !important;
}

.logo-video-carousel .swiper-pagination-bullet-active {
    background: #333;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .logo-video-carousel-video {
        height: 200px !important;
    }
    
    .logo-video-carousel .swiper-button-next,
    .logo-video-carousel .swiper-button-prev {
        width: 30px;
        height: 30px;
    }
    
    .logo-video-carousel .swiper-button-next::after,
    .logo-video-carousel .swiper-button-prev::after {
        font-size: 16px;
    }
}

/* Modal Styles */

.elvc-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    overflow-y: auto;
    overscroll-behavior: contain; /* Prevent page scroll when modal is open */
}

.elvc-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    min-height: 200px;
    max-height: 90vh;
    margin: 40px auto;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.elvc-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
    z-index: 10000;
}

.elvc-close:hover, .elvc-close:focus {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.elvc-close svg {
    width: 20px;
    height: 20px;
    fill: white;
    transition: fill 0.3s ease;
}

.elvc-close:hover svg {
    fill: #ff5050;
}

.elvc-modal-media {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.elvc-modal-media img,
.elvc-modal-media video {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    object-fit: contain;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .elvc-modal {
        padding: 10px;
    }
    
    .elvc-modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .elvc-close {
        top: 10px;
        right: 10px;
        font-size: 28px;
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .elvc-modal-content {
        width: 98%;
    }
    
    .elvc-modal-media img,
    .elvc-modal-media video {
        border-radius: 8px;
    }
}