/* Video Gallery Styles */
.custom-video-gallery {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.custom-video-gallery .splide {
    width: 100%;
    max-width: 100%;
    max-height: 800px;
}

.custom-video-gallery .splide__slide {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    
    border-radius: 8px;
    overflow: hidden;
    transition: opacity 0.3s ease;
    max-width: 95vw;
}

.custom-video-gallery video,
.custom-video-gallery img {
    margin-right: -200px;
    margin-left: -200px;
    height: 800px;
    max-width: unset;
    max-height: 800px;
    object-fit: cover;
    transition: unset;
}

/* Remove negative margins when parallax is disabled */
.custom-video-gallery.no-parallax video,
.custom-video-gallery.no-parallax img {
    margin-right: 0;
    margin-left: 0;
}


/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .custom-video-gallery .splide {
        max-height: 500px!important;
    }

    .custom-video-gallery video,
    .custom-video-gallery img {
        margin-right: -50px;
        margin-left: -50px;
        max-height: 500px;
        transition: all 0
    }

    /* Remove negative margins when parallax is disabled on mobile */
    .custom-video-gallery.no-parallax video,
    .custom-video-gallery.no-parallax img {
        margin-right: 0;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .custom-video-gallery .splide {
        max-height: 400px!important;
    }

    .custom-video-gallery video,
    .custom-video-gallery img {
        margin-right: -20px;
        margin-left: -20px;
        max-height: 400px;
    }

    /* Remove negative margins when parallax is disabled on mobile */
    .custom-video-gallery.no-parallax video,
    .custom-video-gallery.no-parallax img {
        margin-right: 0;
        margin-left: 0;
    }
}

@media (max-width: 320px) {
    .custom-video-gallery .splide {
        max-height: 300px;
    }

    .custom-video-gallery video,
    .custom-video-gallery img {
        margin-right: -10px;
        margin-left: -10px;
        max-height: 300px;
    }

    /* Remove negative margins when parallax is disabled on mobile */
    .custom-video-gallery.no-parallax video,
    .custom-video-gallery.no-parallax img {
        margin-right: 0;
        margin-left: 0;
    }
}

/* Splide customizations */
.custom-video-gallery .splide__pagination {
    left: 50%!important;
    right: unset!important;
}

.custom-video-gallery .splide__pagination__page {
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.custom-video-gallery .splide__pagination__page.is-active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

/* Arrow styles */
.custom-video-gallery .splide__arrow {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 10;
}

 

.custom-video-gallery .splide__arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.custom-video-gallery .splide__arrow svg {
    fill: #333;
    width: 20px;
    height: 20px;
}

.custom-video-gallery .splide__arrow--prev {
    left: 20px;
    rotate: 180deg;
}

.custom-video-gallery .splide__arrow--next {
    right: 20px;
}

/* Mobile arrow adjustments */
@media (max-width: 768px) {
    .custom-video-gallery .splide__arrow {
        width: 40px;
        height: 40px;
    }

    .custom-video-gallery .splide__arrow svg {
        width: 16px;
        height: 16px;
    }

    .custom-video-gallery .splide__arrow--prev {
        left: 10px;
    }

    .custom-video-gallery .splide__arrow--next {
        right: 10px;
    }
}



/* Dark mode support */

/* Bricks builder adjustments */