.acf-image-gallery-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin: 40px 0;
}

.acf-image-gallery-wrapper {
    width: 100%;
    overflow: hidden;
}

.acf-image-gallery-track {
    display: flex;
    animation: scroll-gallery 30s linear infinite;
    width: fit-content;
}

.acf-gallery-image-item {
    flex: 0 0 auto;
    margin-right: 20px;
    height: 300px;
    min-width: 200px;
}

.acf-gallery-image-item img {
    height: 100%;
    width: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: block;
}

@keyframes scroll-gallery {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.acf-image-gallery-track:hover {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .acf-gallery-image-item {
        height: 200px;
        min-width: 150px;
    }
    
    .acf-gallery-image-item {
        margin-right: 15px;
    }
}