.acf-free-carousel-458ba6a0 {
    display: flex;
    overflow: hidden; 
    gap: var(--carousel-gap, 20px);
    padding-bottom: 10px;
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
}

.acf-free-carousel-track-458ba6a0 {
    display: flex;
    gap: inherit;
    width: max-content;
    will-change: transform; /* Optimized for animation */
}

.acf-free-carousel-458ba6a0:active {
    cursor: grabbing;
}

.acf-free-carousel-458ba6a0 .slide-item {
    /* Uses the dynamic CSS variable for item count */
    width: calc((100vw / var(--items-to-show, 3.5)) - var(--carousel-gap, 20px));
    flex-shrink: 0;
}
/* Ensure the widget wrapper doesn't limit the 100vw calc */
.elementor-widget-acf_gallery_carousel_458ba6a0 {
    max-width: 100vw;
    overflow: hidden;
}

.acf-free-carousel-458ba6a0 .slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none; 
}

/* Lightbox Styles */
.acf-carousel-lightbox-458ba6a0 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.acf-carousel-lightbox-458ba6a0.active {
    opacity: 1;
    pointer-events: all;
}

.acf-carousel-lightbox-458ba6a0 img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.acf-carousel-lightbox-458ba6a0.active img {
    transform: scale(1);
}

.acf-carousel-lightbox-close-458ba6a0 {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
}
