/**
 * ══════════════════════════════════════════════════════════════
 * SURESPAN — Gallery Carousel Styles
 * ══════════════════════════════════════════════════════════════
 * 
 * FILE: wp-content/themes/archub-child/css/gallery-carousel.css
 * UPDATED: 2026-02-09
 */

/* ── Wrapper ── */
.surespan-carousel-wrap {
    width: calc(100% + 80px);
    overflow: hidden;
    padding: 0;
    margin: 0 -80px 0 40px;
    position: relative;
}
/* ── Swiper container ── */
.surespan-carousel {
    width: 100%;
    overflow: visible;
}

.surespan-carousel .swiper-wrapper {
    transition-timing-function: linear !important;
}

/* ── Individual Slides ── */
.surespan-carousel__slide {
    width: calc(33.333% - 14px) !important;
    height: auto !important;
aspect-ratio: 3 / 2
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 3px;
    position: relative;

    /* Inactive slide opacity */
    opacity: var(--slide-opacity, 0.4);
    transition: opacity 0.4s ease;
}

/* Active/visible slides get full opacity */
.surespan-carousel__slide.swiper-slide-active,
.surespan-carousel__slide.swiper-slide-next,
.surespan-carousel__slide.swiper-slide-visible {
    opacity: 1;
}

/* When marquee mode is on, ALL slides should be full opacity */
.surespan-carousel-wrap[data-marquee="true"] .surespan-carousel__slide {
    opacity: 1;
}

.surespan-carousel-wrap[data-marquee="true"] .surespan-carousel__slide:first-child,
.surespan-carousel-wrap[data-marquee="true"] .surespan-carousel__slide:last-child {
    opacity: var(--slide-opacity, 0.4);
}

/* ── Images ── */
/* !important on all properties to override Elementor's default img { height: auto } */
.surespan-carousel__image {
height: auto !important;
max-height: none !important;
aspect-ratio: 3 / 2;
    object-fit: cover !important;
    display: block !important;
    border-radius: 3px;
    transition: transform 0.4s ease;
}

/* Hover zoom effect */
.surespan-carousel__slide:hover .surespan-carousel__image {
    transform: scale(1.03);
}

/* ── Lightbox link reset ── */
.surespan-carousel__slide a {
    display: block;
    height: auto;
    line-height: 0;
}

/* ── Cursor ── */
.surespan-carousel {
    cursor: grab;
}
.surespan-carousel:active {
    cursor: grabbing;
}

/* ── Edge fade effect ── */
.surespan-carousel-wrap::before,
.surespan-carousel-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}
.surespan-carousel-wrap::before {
    left: 0;
    width: 40px;
    background: linear-gradient(to right, rgba(255,255,255,0.4), transparent);
}
.surespan-carousel-wrap::after {
    right: 0;
    width: 40px;
    background: linear-gradient(to left, rgba(255,255,255,0.4), transparent);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .surespan-carousel__slide {
        height: 400px !important;
    }
    .surespan-carousel__image {
        max-height: 400px !important;
    }
}

@media (max-width: 768px) {
    .surespan-carousel__slide {
        width: calc(75% - 10px) !important;
        height: 300px !important;
    }
    .surespan-carousel__image {
        max-height: 300px !important;
    }
    .surespan-carousel-wrap::before,
    .surespan-carousel-wrap::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .surespan-carousel__slide {
        width: calc(85% - 10px) !important;
        height: 240px !important;
        border-radius: 3px;
    }
    .surespan-carousel__image {
        max-height: 240px !important;
        border-radius: 3px;
    }
}