﻿/* Outer container hides overflowing images */
.marquee-container {
    overflow: hidden;
    width: 100%;
    background: #f8f9fa; /* Optional background */
    padding: 20px 0;
}

/* Track holds all images in a row and animates */
.marquee-track {
    display: flex;
    width: max-content;
    animation: scrollMarquee 25s linear infinite;
}

/* Pause animation when hovering over the marquee */
.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

/* Individual image box sizing */
.marquee-item {
    width: 200px;
    height: 120px;
    margin-right: 20px;
    flex-shrink: 0;
}

    .marquee-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
    }

/* Keyframes to move the track smoothly */
@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}
