
/* Section */
.brands {
    margin-bottom: 100px;
}
.brands .main_title {
    margin: 30px 0 50px;
    font-size: 32px;
    line-height: 38px;
    font-weight: 700;
}

/* Slider container */
.brands .loop-slide {
    margin: auto;
    width: 100%;
}
.brands .loop-slide .slider {
    width: 100%;
    height: var(--height);
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(
        to right,
        transparent,

    #000 10% 90%,
    transparent
);
}

/* List */
.brands .loop-slide .list {
    position: relative;
    width: 100%;
    height: 100%;
 min-width: calc(var(--width) * var(--quantity)) !important;
}

/* Item */
.brands .loop-slide .item {
    width: var(--width);
    height: var(--height);
    position: absolute;
    left: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 32px;
    animation: autoRun var(--speed) linear infinite;
    animation-delay: calc( (var(--speed) / var(--quantity)) * (var(--position) - 1)  - var(--speed)) !important;
}

/* Image */
.brands .loop-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Forward animation */
@keyframes autoRun {
    from {
        left: 100%;
    }
    to {
        left: calc(var(--width) * -1);
    }
}

/* Pause on hover */
.brands .loop-slide .slider:hover .item {
    animation-play-state: paused !important;
}

/* Reverse animation */
.brands .loop-slide .slider[reverse="true"] .item {
    animation: reversePlay var(--speed) linear infinite;
}

@keyframes reversePlay {
    from {
        left: calc(var(--width) * -1);
    }
    to {
        left: 100%;
    }
}

/* Responsive */
@media (max-width: 767px) {
    .brands {
        margin-bottom: 30px;
    }
    .brands .main_title {
        font-size: 24px;
        line-height: 28px;
    }
}