.image-carousel {
    width: 100%;
    overflow: hidden;
    padding: 24px 0;
    background-color: transparent;
}

.image-carousel__track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.image-carousel__item {
    flex-shrink: 0;
    width: 360px;
    height: 252px;
}

.image-carousel__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

/* Continuous scrolling animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* We slide by half the track because we duplicated the items */
        transform: translateX(-50%);
    }
}

/* Pause on hover if desired, but user asked for constant moving */
/* .image-carousel:hover .image-carousel__track {
    animation-play-state: paused;
} */

@media (max-width: 768px) {
    .image-carousel__item {
        width: 280px;
        height: 196px;
    }
}
