.testimonials__left,
.testimonials__right {
    position: relative;
    width: 100%;
}

.testimonials__image {
    width: 274px;
    position: relative;
    margin: 0 auto;

    > img {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        object-fit: cover;
        object-position: center;
        border-radius: 8px;
        -webkit-mask-image: url(/wp-content/themes/zimmerman/assets/img/logo-update.png);
        mask-image: url(/wp-content/themes/zimmerman/assets/img/logo-update.png);
        -webkit-mask-size: cover;
        mask-size: cover;
        -webkit-mask-position: center;
        mask-position: center;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
    }
}

.owners {
    position: absolute;
    width: 180px;
    bottom: 0;
    left: -39px;

    img {
        width: 100%;
        height: auto;
    }
}

.testimonials__headlines {
    margin: 12px 0 0 0;
    text-align: center;
}

.testimonial-slider {
    margin: 0 -16px;
    font-size: 0;
    padding-bottom: 30px;

    .slick-track {
        display: flex;
    }

    .slick-slide {
        height: auto;

        > div {
            height: 100%;
        }

        > div .testimonial-item {
            height: 100%;
        }
    }
}

.testimonial-item {
    padding: 20px 16px;
}

.testimonial {
    background: var(--white);
    border-bottom: 4px solid var(--light-orange);
    box-shadow: 0 5px 16px rgba(13,27,57,0.1);
    padding: 29px 15px 25px 25px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    color: var(--text-color);
}

.testimonial__star {
    display: flex;
    gap: 4px;
    font-size: 21px;
    line-height: 1em;
    color: var(--primary-color);
}

.testimonial__details {
    height: 112px;
    margin-top: 10px;
}

.testimonial__box {
  display: -webkit-box;
  -webkit-line-clamp: 4; 
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.testimonial__box.is-expanded {
  -webkit-line-clamp: unset;
}

.testimonial__box {
    height: 90px;
    overflow: hidden;
    padding-right: 10px;
}

.testimonial__box.is-expanded {
    width: 100%;
    overflow: auto;
    @supports not (selector(::-webkit-scrollbar-thumb)) {
        scrollbar-color: var(--light-orange) var(--primary-color);
        scrollbar-width: thin;
    }
}

.testimonial__box:hover {
    @supports not (selector(::-webkit-scrollbar-thumb)) {
        scrollbar-color: var(--primary-color) var(--light-orange);
    }
}

.testimonial__box::-webkit-scrollbar {
    width: 6px;
}

.testimonial__box::-webkit-scrollbar-track {
    border-radius: 8px;
    background-color: var(--light-orange);
}

.testimonial__box::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background-color: var(--primary-color);
}


.expand.is-active::after {
    content: '\e924';
}

.testimonial__bottom {
    margin-top: 20px;
}

.testimonial__author {
    color: var(--blue) !important;
    font-size: 16px;
    line-height: 1.2em;
    letter-spacing: 0.125em;
    text-transform: uppercase;
    margin-bottom: 0;
}

.testimonial__date {
    display: block;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.2em;
    letter-spacing: 0.133em;
}

@media (min-width:768px) {
    
    .testimonials__image {
        width: 517px;
    }

    .owners {
        width: 330px;
        left: -65px;
    }

    .testimonials__headlines {
        margin: 20px 0 12px 0;
        text-align: left;
        display: flex;
        align-items: flex-end;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .testimonials__title {
        width: 374px;
    }

    .testimonials__title :last-child {
        margin-bottom: 0;
    }

    .testimonial-slider {
        padding-bottom: 35px;
    }


    .testimonial {
        padding: 25px 25px 25px 35px;
    }


    .testimonial__details {
        height: 142px;
    }

    .testimonial__details p {
        letter-spacing: 0.01em;
    }

    .testimonial__box {
        -webkit-line-clamp: 5; 
    }


    .testimonial__box {
        height: 120px;
    }

    .testimonial__bottom {
        margin-top: 20px;
    }

    .testimonial__author {
        font-size: 18px;
    }

}


@media (min-width:1200px) {

    .testimonials .flex-row {}

    .testimonials__image {
        height: 100%;
    }

    .testimonials__left {
        width: 508px;
    }
    
    .testimonials__image {
        width: 100%;
        height: 100%;

        > img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }
    }

    .testimonials__right {
        width: calc(100% - 508px);
        padding-left: 32px;
    }

    .testimonials__headlines {
        margin: 0 0 32px 0;
    }

    .testimonials__slider-wrapper {
        width: 2500px;
    }

    .testimonial {
        width: 346px;
    }

    .testimonial__details {
        height: 158px;
    }

    .testimonial__box {
        height: 135px;
    }

    .testimonial__author {
        font-size: 20px;
    }

    .testimonial-slider .slick-prev {
        margin: 0;
        left: 16px;
    }

    .testimonial-slider .slick-next {
        right: auto;
        margin: 0;
        left: 66px;
    }

}

.testimonial-grid {
    .testimonials__slider-wrapper {
        width: 100%;
    }

    .row {
        justify-content: center;
    }

    .testimonial {
        width: 100%;
    }

    .testimonial-item.is-load-more-hidden {
        display: none;
    }
}

.testimonial-grid__footer {
    margin-top: 2rem;
}

.testimonial-grid__viewing-count {
    margin: 0 0 1rem;
}

.testimonial-grid .testimonial-grid__progress {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 0 auto 1rem;
    height: 10px;
    border: 0;
    border-radius: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.testimonial-grid .testimonial-grid__progress::-webkit-progress-bar {
    background-color: #ddd;
    border-radius: 0;
}

.testimonial-grid .testimonial-grid__progress::-webkit-progress-value {
    background-color: #4a4a4a;
    border-radius: 0;
}

.testimonial-grid .testimonial-grid__progress::-moz-progress-bar {
    background-color: #4a4a4a;
}

.testimonial-grid__footer .testimonial-grid__load-more {
    margin-top: 30px;
}

.testimonial-grid__upper {
    margin-bottom: 30px;
}