/* BLOCK: Testimonials */

.block-testimonials {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.block-testimonials .bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: var(--bg-opacity, 0.5);
    pointer-events: none;
    user-select: none;
}

.block-testimonials .text-content {
    text-align: center;
    margin-bottom: 5rem;
}

.block-testimonials .text-content h6 {
    justify-content: center;
}

.block-testimonials .swiper {
    margin-inline: calc(-1 * var(--offset, 0px));
    padding-inline: var(--offset, 0px);
    overflow: visible;
}

.block-testimonials .swiper-slide {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3.125rem;
}

.block-testimonials .swiper-slide:not(.swiper-slide-active) {
    opacity: 0.3;
}

.block-testimonials .swiper-slide svg {
    max-width: 1.375rem;
    max-height: 1.375rem;
    color: var(--theme-ui);
}

.block-testimonials:is(.theme--lightest,.theme--lighter,.theme--light) .swiper-slide svg {
    color: var(--c-bg-dark);
}

.block-testimonials .swiper-slide .source {
    font-family: var(--ff-borna);
    font-size: var(--font-19-15);
    font-style: normal;
    font-weight: 500;
    font-optical-sizing: auto;
    line-height: 1.1;
    letter-spacing: -0.03em;
    vertical-align: middle;
}

.block-testimonials .swiper-navigation {
    justify-content: center;
    margin-top: 5rem;
}

@media screen and (width <= 620px) {
    .block-testimonials .text-content {
        margin-bottom: 3.125rem;
    }
    .block-testimonials .swiper-slide {
        gap: 1.875rem;
    }
    .block-testimonials .swiper-slide svg {
        max-width: 0.9375rem;
        max-height: 0.9375rem;
    }
    .block-testimonials .swiper-slide .source {
        margin-top: 0.625rem;
    }
    .block-testimonials .swiper-navigation {
        display: none;
    }
    .block-testimonials .swiper-pagination {
        justify-content: center;
        margin-top: 2.5rem;
    }
}