/* Custom CSS for the infinite image scroll */

.wrapper {
    overflow: hidden; /* Hide anything outside the wrapper */
    white-space: nowrap; /* Prevent items from wrapping to the next line */
    position: relative; /* Needed for pseudo-elements for fade effect (optional) */
    padding: 20px 0; /* Add some vertical padding for visual spacing */
}

.track {
    display: inline-block; /* Make children display in a single line */
    animation: scroll-left 30s linear infinite; /* Adjust duration for speed */
    /* Duplicate content for seamless loop is handled in HTML */
}

.logo {
    display: inline-block;
    vertical-align: middle;
    width: 200px; /* Adjust image width as needed */
    height: 150px; /* Adjust image height as needed */
    margin: 0 15px; /* Spacing between images */
    border-radius: 8px;
    overflow: hidden; /* Ensure image corners are rounded */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure images cover the div without distortion */
}
/* Keyframe animation for continuous scrolling */
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Scrolls half the track width (assuming duplicates) */
}

/* Optional: Add a subtle fade effect at the ends of the scroll area */
.wrapper::before,
.wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px; /* Width of the fade effect */
    height: 100%;
    z-index: 10;
    pointer-events: none; /* Allows clicks to pass through */
}

.wrapper::before {
    left: 0;
    /* This gradient should match the background color of the section it's in */
    background: linear-gradient(to right, rgba(243, 244, 246, 1), rgba(243, 244, 246, 0)); /* Matches bg-gray-100 */
}

.wrapper::after {
    right: 0;
    /* This gradient should match the background color of the section it's in */
    background: linear-gradient(to left, rgba(243, 244, 246, 1), rgba(243, 244, 246, 0)); /* Matches bg-gray-100 */
}

/* Responsive adjustments for image sizes */
@media (max-width: 768px) {
    .logo {
        width: 150px;
        height: 100px;
        margin: 0 10px;
    }
    .track {
        animation-duration: 20s; /* Faster scroll on smaller screens */
    }
    .wrapper::before,
    .wrapper::after {
        width: 50px; /* Smaller fade effect on mobile */
    }
}