.testimonials {
    position: relative;
}

.testimonials__warp {
    position: relative;
    z-index: 3;
    padding-left: 30px;
}

.testimonials__top-content {
    margin-bottom: 32px;
}

.testimonials__top-content h2:last-child {
    margin-bottom: 0;
}

.testimonials__image {
    width: 100%;
    height: 317px;
    margin-bottom: 32px;
    border-radius: 20px;
    overflow: hidden;
}

.testimonials__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;    
}

.testimonials--contain .testimonials__image img {
    height: auto;
    width: auto;
    object-fit: contain;
    border-radius: 20px;
}

.testimonial__stars {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 10px;
    font-size: 21px;
    line-height: 1em;
    font-weight: normal;
    color: var(--orange);
    margin-bottom: 14px;
}

.testimonial h4 {
    margin: 0;
    padding: 0;
    font-size: 30px;
    line-height: 1em;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 18px;
    text-transform: none;
}

.testimonial-slider-wrap {
    padding-bottom: 45px;
}

.testimonials__btn {
    margin-top: 70px;
}

@media (min-width: 768px) {
    .testimonials__image {
        width: 549px;
        height: 583px;
    }

    .testimonial p {
        font-size: 22px;
    }
}

@media (min-width: 1200px) {
    .testimonials__top-content {
        margin-bottom: 60px;
    }

    .testimonials__flex {
        display: flex;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .testimonials__image {
        width: calc(50% - 66px);
        height: 583px;
        margin-bottom: 0;
        margin-right: 50px;
    }

    .testimonials__content {
        width: calc(50% + 16px);
        padding-left: 16px;
        padding-top: 64px;
    }
}

.testimonials--grid {
    .testimonial-slider-wrap {
        padding-bottom: 0;
        margin-bottom: -32px;
        
        > div {
            margin-bottom: 32px;
        }
    }

    .testimonials__content {
        width: 100%;
        padding-left: 0;
        padding-top: 0;
    }

    .testimonial {
        padding: 20px;
        border: 1px solid var(--charcoal-10);
        border-radius: 4px;
        overflow: hidden;
        height: 100%;

        h4 {
            font-size: 26px;
        }

        p {
            font-size: 18px;
        }
    }
}