.testimonials {
    &.image-right {
        .row {
            flex-direction: row-reverse;

            @media screen and (max-width: 991px) {
                flex-direction: column-reverse;
            }
        }
        .testimonial-image {
            right: -5%;
            padding-right: 0;
            left: auto;
            padding-left: var(--spacing-6);

            @media screen and (max-width: 991px) {
                padding: 0;
                right: 0%;
            }
        }
        .testimonial-content {
            padding-right: calc(var(--spacing-6) / 2);
            padding-left: var(--spacing-6);
            width: 38%;
            margin-right: -5%;
            margin-left: 0%;

            @media screen and (max-width: 991px) {
                width: 100%;
                padding: 0 5%;
                margin-right: 0%;
            }
            &:before {
                right: auto;
                left: 0;
            }
        }
    }
    .container {
        @media screen and (max-width: 991px) {
            width: 100%;
        }
    }
    .row {
        @media screen and (max-width: 991px) {
            flex-direction: column-reverse;
            margin: 0;
        }
    }
    .testimonial-image {
        display: flex;
        align-items: center;
        position: relative;
        left: -5%;
        padding-left: 0;

        @media screen and (max-width: 991px) {
            padding: 0;
            left: 0%;
        }
        .testimonial-image-slider {
            position: relative;
            filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.2));
        }
        img {
            width: 100%;
            height: auto;
            max-height: 560px;
            object-fit: cover;
        }
        .testimonial-caption {
            position: absolute;
            bottom: 0;
            right: 0;
            width: calc(90% - 80px);
            max-width: 350px;
            background-color: var(--color-red);
            text-align: right;
            padding: var(--spacing-4) var(--spacing-4) var(--spacing-4) 0;
            display: flex;
            justify-content: flex-end;

            @media screen and (max-width: 991px) {
                top: 0;
                bottom: auto;
            }
            @media screen and (max-width: 768px) {
                max-width: 280px;
            }
            @media screen and (max-width: 576px) {
                max-width: 220px;
                padding: 1rem 1rem 1rem 0;
            }
            &:before {
                content: '';
                width: 80px;
                height: 100%;
                background-color: var(--color-red);
                position: absolute;
                bottom: 0;
                left: -79px;
                clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 100% 100%);
            }
            .caption-inner {
                max-width: 320px;
            }
            h4 {
                margin-bottom: 0;

                @media screen and (max-width: 576px) {
                    margin-bottom: calc(var(--spacing-xxs) / 2);
                }
            }
            p {
                margin-bottom: var(--spacing-xxs);

                @media screen and (max-width: 576px) {
                    font-size: .9rem;
                    line-height: 1.15rem;
                }
                &:last-of-type {
                    margin-bottom: 0;
                }
            }
        }
    }
    .testimonial-content {
        position: relative;
        padding-right: var(--spacing-6);
        width: 38%;
        margin-left: -5%;
        display: flex;
        flex-direction: column;
        justify-content: center;

        @media screen and (max-width: 991px) {
            padding: 0 5%;
            width: 100%;
            margin-left: 0%;
            margin-bottom: var(--spacing-6);
        }
        &:before {
            content: '';
            width: 2px;
            height: 100%;
            background: var(--gradient-white-vertical);
            position: absolute;
            top: 0;
            right: 0;

            @media screen and (max-width: 991px) {
                display: none;
            }
        }
        .swiper {
            width: 100%;
        }
        .swiper-wrapper {
            height: auto;
        }
        .content-inner {
            position: relative;
            
            @media screen and (max-width: 991px) {
                padding-left: var(--spacing-4);
            }
            &:before {
                content: '';
                width: 1px;
                height: calc(100% + (var(--spacing-4) + 44px));
                background: linear-gradient(to bottom, var(--color-white), rgba(var(--color-white-rgb), 0));
                position: absolute;
                top: 0;
                left: 0;
                display: none;

                @media screen and (max-width: 991px) {
                    display: block;
                }
            }
        }
        h2 {
            position: relative;
            margin-bottom: var(--spacing-4);

            @media screen and (max-width: 991px) {
                margin: 0 0 var(--spacing-4);
            }
            @media screen and (max-width: 576px) {
                margin-bottom: 1rem;
            }
            br {
                @media screen and (max-width: 991px) {
                    display: none;
                }
            }
        }
        .quote-icon {
            margin-bottom: var(--spacing-4);

            @media screen and (max-width: 576px) {
                margin-bottom: 1rem;
            }
            img {
                @media screen and (max-width: 576px) {
                    width: 60px;
                }
            }
        }
        .author {
            font-weight: 800;
            margin-bottom: 0;
        }
        .swiper-navigation {
            display: flex;
            margin-top: var(--spacing-4);

            @media screen and (max-width: 991px) {
                padding-left: var(--spacing-4);
            }
            .swiper-button-prev, .swiper-button-next {
                position: relative;
                left: auto;
                right: auto;
                top: auto;
                margin: 0;
                transition: .2s ease-in-out;

                &:hover, &:focus-visible {
                    transform: scale(1.1);
                }
                &.swiper-button-disabled {
                    opacity: .7;
                }
                svg {
                    display: none;
                }
            }
            .swiper-button-next {
                margin-left: 20px;
            }
        }
    }
}