/*
    Block: Reviews Carousel
    Note: Selectors must start with .block-reviews-carousel
*/

@layer blocks {
    .block-reviews-carousel .swiper {
        overflow: visible;
    }

    .block-reviews-carousel .swiper {
        display: grid;
        column-gap: 7.5rem;
        row-gap: 4.375rem;
        grid-template-columns: 738fr 413fr;
        align-items: end;
    }

    .block-reviews-carousel .grid-wrapper .text-content :is(h2,.h2, h3, .h3) {
        text-wrap: balance;
    }

    .block-reviews-carousel .actions {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .block-reviews-carousel .swiper-wrapper {
        grid-column: 1 / span 2;
    }

    @media screen and (width <= 968px) {
        .block-reviews-carousel .swiper {
            grid-template-columns: 1fr;
            row-gap: 1.5625rem;
            column-gap: 0;
        }
        .block-reviews-carousel .actions {
            order: 3;
            flex-direction: column-reverse;
        }
        .block-reviews-carousel .swiper-pagination-progressbar {
            margin-block: 0 1.5625rem;
            width: 100%;
        }
        .block-reviews-carousel .actions .buttons {
            justify-content: space-between;
            gap: 1rem;
            width: 100%;
        }
        .block-reviews-carousel .swiper-navigation {
            gap: 0.4375rem;
        }
        .block-reviews-carousel .text-content {
            margin-bottom: 1.5625rem;
        }
    }
}
