html,
body,
.main-wrapper {
    overflow-x: clip;
    max-width: 100%;
}

.clients-logo-strip {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding: 40px 0 48px;
    background: #fff;
    border-top: 1px solid #e4ebf3;
    overflow: hidden;
    contain: layout paint;
}

.clients-logo-marquee {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.clients-logo-marquee-track {
    display: flex;
    align-items: center;
    width: fit-content;
    will-change: transform;
    animation: clients-marquee 32s linear infinite;
}

.clients-logo-marquee:hover .clients-logo-marquee-track {
    animation-play-state: paused;
}

.clients-logo-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    padding: 0 24px;
}

.clients-logo-item img {
    display: block;
    max-width: 130px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    /* filter: grayscale(100%); */
    opacity: 0.75;
    transition: filter 0.25s ease, opacity 0.25s ease;
}

.clients-logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes clients-marquee {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-50%, 0, 0);
    }
}

html[dir="rtl"] .clients-logo-marquee-track {
    animation-name: clients-marquee-rtl;
}

@keyframes clients-marquee-rtl {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(50%, 0, 0);
    }
}

@media (max-width: 767px) {
    .clients-logo-strip {
        padding: 28px 0 36px;
    }

    .clients-logo-item {
        width: 150px;
        padding: 0 16px;
    }

    .clients-logo-item img {
        max-width: 110px;
        max-height: 48px;
    }

    .clients-logo-marquee-track {
        animation-duration: 24s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .clients-logo-marquee-track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: 20px 32px;
        padding: 0 16px;
    }
}
