﻿.customer-scrolling-logos-container {
    overflow: hidden;
    width: 100%;
    white-space: nowrap;
    position: relative;
}

/* Fade edges only when the strip animates. */
.customer-scrolling-logos-container.scroll-fade {
    mask-image: linear-gradient( to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 2%, rgba(0, 0, 0, 1) 98%, rgba(0, 0, 0, 0) 100% );
    /* Browser compatibility for Safari/Chrome */
    -webkit-mask-image: linear-gradient( to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 10%, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0) 100% );
}

.customer-scrolling-logos-track {
    display: inline-flex;
    align-items: center;
    gap: 60px;
    width: max-content;
}

.customer-scrolling-logos-track.animate {
    animation: customer-clickable-logos-scroll 20s linear infinite;
    will-change: transform;
}

    .customer-scrolling-logos-track img {
        max-height: 62px;
        width: auto;
        flex-shrink: 0;
    }

/* Pause on hover for better UX */
.customer-scrolling-logos-container.scroll-fade:hover .customer-scrolling-logos-track.animate {
    animation-play-state: paused;
}

@keyframes customer-clickable-logos-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 30px));
    }
    /* Moves exactly one set of images */
}
