body.amarket .am-logo-carousel--horizontal .am-logo-carousel__container {
    max-width:var(--am-carousel-viewport-width, 100%);
}

/* Swiper adds slide margins when it initializes. */
body.amarket .am-logo-carousel--horizontal .am-logo-carousel__container:not(.swiper-container-horizontal) > .swiper-wrapper {
    column-gap:var(--am-carousel-gap);
}

@media (max-width: 767px) {
    body.amarket .am-logo-carousel--horizontal.swiper-viewport {
        --am-carousel-mobile-row-width:calc(100vw - 48px);
        --am-carousel-mobile-card-width:min(var(--am-carousel-image-width), calc((var(--am-carousel-mobile-row-width) - var(--am-carousel-gap)) / 2));
    }

    @supports (width: 1cqw) {
        body.amarket .am-logo-carousel--horizontal.swiper-viewport {
            container-type:inline-size;
            --am-carousel-mobile-row-width:100cqw;
        }
    }

    body.amarket .am-logo-carousel--horizontal .am-logo-carousel__slide {
        width:var(--am-carousel-mobile-card-width);
    }

    body.amarket .am-logo-carousel--horizontal .am-logo-carousel__item {
        min-height:0;
    }

    body.amarket .am-logo-carousel--horizontal .am-logo-carousel__image {
        height:auto;
    }
}
