/**
 * Logos Carousel – layout only; animation handled by JS.
 */

.elementor-logos-carousel {
    overflow: hidden;
    width: 100%;
    direction: ltr; /* Force LTR so overflow clips from the right and translateX works correctly on RTL sites */
}

.elementor-logos-carousel__viewport {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
}

/* Each track holds all items; JS clones the track for seamless loop */
.elementor-logos-carousel__track {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.elementor-logos-carousel__track--duplicate {
    flex-shrink: 0;
}

/* Item size is determined by logo height – no fixed column count */
.elementor-logos-carousel__item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.elementor-logos-carousel__link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 100%;
}

.elementor-logos-carousel__link img {
    display: block;
    height: auto;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

/* Respect reduced motion – JS checks this too but belt-and-suspenders */
@media (prefers-reduced-motion: reduce) {
    .elementor-logos-carousel__viewport {
        animation: none !important;
        transform: none !important;
    }
}
