/**
 * ACF Repeater Carousel Styles
 */

.acf-carousel-wrapper {
    position: relative;
    width: 100%;
}

.acf-carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.acf-carousel-track::-webkit-scrollbar {
    display: none;
}

.acf-repeater-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    box-sizing: border-box;
}

/* Navigation Arrows */
.acf-nav-prev,
.acf-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.acf-nav-prev:hover,
.acf-nav-next:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.acf-nav-prev {
    left: 0;
}

.acf-nav-next {
    right: 0;
}

.acf-nav-prev i,
.acf-nav-next i {
    font-size: 20px;
}

/* Dots */
.acf-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.acf-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.acf-dot.active {
    background: #333 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .acf-nav-prev,
    .acf-nav-next {
        width: 32px !important;
        height: 32px !important;
    }
    .acf-nav-prev i,
    .acf-nav-next i {
        font-size: 16px !important;
    }
}

/* Slide width based on columns */
.acf-carousel-wrapper[data-slides="1"] .acf-repeater-item { width: 100%; }
.acf-carousel-wrapper[data-slides="2"] .acf-repeater-item { width: 50%; }
.acf-carousel-wrapper[data-slides="3"] .acf-repeater-item { width: 33.333%; }
.acf-carousel-wrapper[data-slides="4"] .acf-repeater-item { width: 25%; }
.acf-carousel-wrapper[data-slides="5"] .acf-repeater-item { width: 20%; }
.acf-carousel-wrapper[data-slides="6"] .acf-repeater-item { width: 16.666%; }

@media (max-width: 1024px) {
    .acf-carousel-wrapper[data-slides="3"] .acf-repeater-item,
    .acf-carousel-wrapper[data-slides="4"] .acf-repeater-item { width: 50%; }
    .acf-carousel-wrapper[data-slides="5"] .acf-repeater-item,
    .acf-carousel-wrapper[data-slides="6"] .acf-repeater-item { width: 33.333%; }
}

@media (max-width: 768px) {
    .acf-carousel-wrapper[data-slides="1"] .acf-repeater-item,
    .acf-carousel-wrapper[data-slides="2"] .acf-repeater-item,
    .acf-carousel-wrapper[data-slides="3"] .acf-repeater-item,
    .acf-carousel-wrapper[data-slides="4"] .acf-repeater-item,
    .acf-carousel-wrapper[data-slides="5"] .acf-repeater-item,
    .acf-carousel-wrapper[data-slides="6"] .acf-repeater-item { width: 100%; }
}