.acf-image-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.acf-image-carousel .slides-wrapper {
    display: flex;
    transition: transform 0.4s ease;
    will-change: transform;
}

.acf-image-carousel .slide {
    flex: 0 0 50%;   /* show 2 at a time */
    box-sizing: border-box;
    padding: 0 6px;  /* gap between slides */
}

.acf-image-carousel .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

/* Nav buttons — styled to match the image (circle, left/right inside) */
.acf-image-carousel button:is(.prev, .next) {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: none;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    transition: background 0.2s;
}
.acf-image-carousel button:is(.prev, .next):hover {
    border-color: var(--wp--preset--color--light-green);
    background-color: var(--wp--preset--color--light-green);
}
.acf-image-carousel button.prev { left: 10px; }
.acf-image-carousel button.next { right: 10px; }

/* Hide arrows when at the limit (controlled via JS class) */
.acf-image-carousel.at-start button.prev,
.acf-image-carousel.at-end   button.next {
    opacity: 0.3;
    pointer-events: none;
}

@media ( max-width: 781px) {
    .acf-image-carousel .slide {
        flex: 0 0 100%;
    }
}

.acf-image-single .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}