.wp-block.testimonials-slider {
    overflow: hidden;
    color: var(--color-mahogany-brown);
}

.testimonials-slider__inner {
    margin-inline: auto;
}

.testimonials-slider__swiper {
    width: 100%;
    margin-inline: auto;
}

.testimonials-slider__track {
    align-items: stretch;
}

.testimonials-slider__slide {
    height: auto;
    display: flex;
}

.testimonials-slider__testimonial {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    text-align: center;
}

.testimonials-slider__quote-layout {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
    justify-content: center;
    width: 100%;
}

.testimonials-slider__quote-mark--opening {
    grid-column: 2;
    justify-self: end;
}

.testimonials-slider__quote {
    grid-column: 3 / span 8;
}

.testimonials-slider__quote-mark--closing {
    grid-column: 11;
    justify-self: start;
}

.testimonials-slider__quote-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(4rem, 7vw, 6rem);
    font-weight: 700;
    line-height: 1;
    opacity: 0.65;
    pointer-events: none;
    user-select: none;
}

.testimonials-slider__quote {
    margin: 0;
    padding: 0;
    border: 0;
    max-width: none;
}

.testimonials-slider__content {
    width: 100%;
    max-width: none;
    font-size: var(--font-size-l);
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    text-wrap: pretty;
}

.testimonials-slider__content > * {
    width: 100%;
    max-width: none;
    margin-inline: auto;
    font-size: inherit;
    font-weight: inherit;
    text-align: center;
}

.testimonials-slider__content > :first-child {
    margin-top: 0;
}

.testimonials-slider__content > :last-child {
    margin-bottom: 0;
}

.testimonials-slider__content p + p {
    margin-top: 1em;
}

.testimonials-slider__attribution {
    margin-top: clamp(1.5rem, 3vw, 2.25rem);
    opacity: 0.82;
    text-wrap: balance;
font-size: var(--font-size-s);
  font-weight: 600;
}

.testimonials-slider__attribution::before {
    display: block;
    width: 2rem;
    height: 1px;
    margin: 0 auto 0.875rem;
    background: currentColor;
    content: "";
    opacity: 0.5;
}

.testimonials-slider__controls {
    display: flex;
    justify-content: center;
    gap: 0.625rem;
    margin-top: clamp(2rem, 4vw, 3rem);
}

.testimonials-slider__button {
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: background-color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.testimonials-slider__button svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.75;
}

.testimonials-slider__button:hover:not(:disabled, .swiper-button-disabled) {
    background-color: color-mix(in srgb, currentColor 12%, transparent);
    transform: translateY(-2px);
}

.testimonials-slider__button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.testimonials-slider__button:disabled,
.testimonials-slider__button.swiper-button-disabled {
    cursor: default;
    opacity: 0.35;
}

.testimonials-slider__button.swiper-button-lock {
    display: none;
}

@media (max-width: 640px) {
    .testimonials-slider__quote-layout.block-column-gap {
        grid-template-columns: 2rem minmax(0, 1fr) 2rem;
        gap: 0.25rem;
    }

    .testimonials-slider__quote-mark--opening {
        grid-column: 1;
    }

    .testimonials-slider__quote {
        grid-column: 2;
    }

    .testimonials-slider__quote-mark--closing {
        grid-column: 3;
    }

    .testimonials-slider__quote-mark {
        font-size: 3rem;
    }

    .testimonials-slider__button {
        width: 2.625rem;
        height: 2.625rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .testimonials-slider__button {
        transition: none;
    }
}
