/* ******************************************** */
/** COMPONENTS: CLIENTS MARQUEE, ENGLISH
/* The AI pages' "Trusted by" strip (inc/components/clients-marquee-usa.tpl) on the other English pages (home, about).
/* Same rules as the .c-service-ai-usa ones in service-ai-usa.css, scoped to .trust-carousel so that they win over
/* components.logos-carousel.css.
/* ******************************************** */

.trust-carousel.c-logos-carousel {
    --_gap: 4.8rem;
    --_box: 5.6rem;
    --_scale: .85;
    --_speed: 40s;

    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.trust-carousel.c-logos-carousel ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.trust-carousel.c-logos-carousel .c-logos-carousel__marquee,
.trust-carousel.c-logos-carousel .c-logos-carousel__list {
    position: relative;
    width: max-content;
}

.trust-carousel.c-logos-carousel .c-logos-carousel__list {
    display: flex;
    align-items: flex-end;
    white-space: normal;
}

.trust-carousel.c-logos-carousel .c-logos-carousel__item {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding-left: var(--_gap);
    font-size: inherit;
}

.trust-carousel.c-logos-carousel .lg-box {
    display: flex;
    height: calc(var(--_box) * var(--_scale));
    align-items: center;
}

.trust-carousel.c-logos-carousel .c-logos-carousel__img {
    display: block;
    width: auto;
    max-width: none;
    height: calc(var(--h) * var(--_scale));
    filter: brightness(0);
    opacity: .82;
}

.trust-carousel.c-logos-carousel .tick {
    color: #6b6b72;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.trust-carousel.c-logos-carousel .c-logos-carousel__clone {
    position: absolute;
    top: 0;
    left: 100%;
}

.trust-carousel.c-logos-carousel .c-logos-carousel__marquee {
    animation: clients-marquee-en var(--_speed) linear infinite;
    animation-play-state: running;
}

.trust-carousel.c-logos-carousel:hover .c-logos-carousel__marquee {
    animation-play-state: paused;
}

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

@media (min-width: 48rem) {
    .trust-carousel.c-logos-carousel {
        --_gap: 6.4rem;
        --_scale: 1;
    }
}

@media (min-width: 87.5rem) {
    .trust-carousel.c-logos-carousel {
        --_gap: 8rem;
        --_scale: 1.15;
    }
}

@media (prefers-reduced-motion: reduce) {
    .trust-carousel.c-logos-carousel .c-logos-carousel__marquee {
        animation: none;
    }
}

/* Heading with the AWS Partner badge, as on the AI pages (.trust-head) */
.c-companies__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.4rem;
}

.c-companies__aws {
    flex: none;
    width: 7.2rem;
    height: auto;
}

@media (min-width: 48rem) {
    .c-companies__aws {
        width: 9.2rem;
    }
}
