.wrapper {
    width: 90%;
    max-width: 1536px;
    margin-inline: auto;
    position: relative;
    height: 100px;
    /*margin-block: 5rem;*/
    overflow: hidden;
    mask-image: linear-gradient(
            to right,
            rgba(0, 0, 0, 0),
            rgba(0, 0, 0, 1) 20%,
            rgba(0, 0, 0, 1) 80%,
            rgba(0, 0, 0, 0)
    );
}

@keyframes scrollLeft {
    to {
        left: -200px;
    }
}

.item {
    top: 50%;
    transform: translateY(-50%);
    background-color: red;
    border-radius: 6px;
    position: absolute;
    left: max(calc(200px * 8), 100%);
    animation-name: scrollLeft;
    animation-duration: 30s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.item1 {
    animation-delay: calc(30s / 8 * (8 - 1) * -1);
}

.item2 {
    animation-delay: calc(30s / 8 * (8 - 2) * -1);
}

.item3 {
    animation-delay: calc(30s / 8 * (8 - 3) * -1);
}

.item4 {
    animation-delay: calc(30s / 8 * (8 - 4) * -1);
}

.item5 {
    animation-delay: calc(30s / 8 * (8 - 5) * -1);
}

.item6 {
    animation-delay: calc(30s / 8 * (8 - 6) * -1);
}

.item7 {
    animation-delay: calc(30s / 8 * (8 - 7) * -1);
}

.item8 {
    animation-delay: calc(30s / 8 * (8 - 8) * -1);
}


/* TESTIMONIALS */
.testimonial-wrapper {
    width: 90%;
    max-width: 1536px;
    margin-inline: auto;
    position: relative;
    height: 460px;
    overflow: hidden;
    mask-image: linear-gradient(
            to right,
            rgba(0, 0, 0, 0),
            rgba(0, 0, 0, 1) 20%,
            rgba(0, 0, 0, 1) 80%,
            rgba(0, 0, 0, 0)
    );
}

@keyframes scrollLeftTestimonial {
    to {
        left: -450px;
    }
}

.testimonial-item {
    top: 50%;
    transform: translateY(-50%);
    border-radius: 6px;
    position: absolute;
    left: max(calc(450px * 3), 100%);
    animation-name: scrollLeftTestimonial;
    animation-duration: 25s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.testimonial-item1 {
    animation-delay: calc(25s / 3 * (3 - 1) * -1);
}
.testimonial-item2 {
    animation-delay: calc(25s / 3 * (3 - 2) * -1);
}
.testimonial-item3 {
    animation-delay: calc(25s / 3 * (3 - 3) * -1);
}

.testimonial-card {
    box-sizing: border-box !important;
    width: 450px;
    height: 450px;
    display: flex;
    padding: 35px;
    justify-content: space-between;
    border-radius: 10%;
    flex-direction: column;
    background-color: white;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.5);
}

@media (width < 576px) {
    .testimonial-wrapper {
        height: 460px;
    }

    @keyframes scrollLeftTestimonial {
        to {
            left: -350px;
        }
    }

    .testimonial-card {
        width: 350px;
        padding: 10%;
        height: 450px;
        font-size: 14px;
    }

    .testimonial-item {
        left: max(calc(350px * 3), 100%);
    }
}

