.fhv-testimonials {
    --fhv-testimonial-blue: #103d5b;
    --fhv-testimonial-dark: #062235;
    --fhv-testimonial-orange: #df6732;
    --fhv-testimonial-pale: #eff4f8;
    position: relative;
    margin-block: clamp(3rem, 7vw, 6rem);
    color: var(--fhv-testimonial-dark);
}

.fhv-testimonials__header {
    margin: 0 auto clamp(2.5rem, 5vw, 4.5rem);
    text-align: center;
}

.fhv-testimonials__header h2 {
    margin: 0 0 0.8rem;
    color: var(--fhv-testimonial-blue);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.05;
}

.fhv-testimonials__source {
    color: #637786;
    font-size: 0.9rem;
    text-decoration: none;
}

.fhv-testimonials__source span {
    display: inline-grid;
    width: 1.1rem;
    height: 1.1rem;
    margin-right: 0.35rem;
    border-radius: 50%;
    background: #a6b1b8;
    color: #fff;
    place-items: center;
    font-size: 0.7rem;
}

.fhv-testimonials__slider {
    position: relative;
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr) 3rem;
    align-items: center;
    gap: clamp(0.25rem, 1.5vw, 1.25rem);
}

.fhv-testimonials__viewport {
    overflow: hidden;
    padding: 3.5rem 0 0.5rem;
}

.fhv-testimonials__track {
    display: flex;
    gap: clamp(1rem, 3vw, 2.75rem);
    transition: transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
    will-change: transform;
}

.fhv-testimonial {
    position: relative;
    display: flex;
    flex: 0 0 calc((100% - clamp(1rem, 3vw, 2.75rem)) / 2);
    min-width: 0;
    min-height: 31rem;
    box-sizing: border-box;
    padding: 4rem clamp(1.4rem, 3vw, 2.2rem) 1.8rem;
    border: 1px solid #dbe2e7;
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: 0 0.4rem 1.2rem rgb(6 34 53 / 10%);
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.fhv-testimonial__photo {
    position: absolute;
    top: -3.25rem;
    width: 6.5rem;
    height: 6.5rem;
    border: 0.35rem solid #fff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0.25rem 0.8rem rgb(6 34 53 / 14%);
}

.fhv-testimonial h3,
.fhv-testimonial-dialog h3 {
    margin: 0;
    color: var(--fhv-testimonial-orange);
    font-size: clamp(1.45rem, 2vw, 1.8rem);
    font-weight: 600;
    line-height: 1.15;
}

.fhv-testimonial__meta {
    margin: 0.5rem 0 1.5rem;
    color: var(--fhv-testimonial-dark);
    font-weight: 700;
}

.fhv-testimonial blockquote {
    position: relative;
    width: 100%;
    margin: 0 0 1.4rem;
    padding: 0.75rem 0 0 2.2rem;
    color: var(--fhv-testimonial-dark);
    font-size: clamp(1.05rem, 1.7vw, 1.25rem);
    font-weight: 600;
    line-height: 1.6;
    text-align: left;
}

.fhv-testimonial blockquote::before {
    position: absolute;
    top: -0.1rem;
    left: 0;
    color: var(--fhv-testimonial-orange);
    content: "“";
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

.fhv-testimonial__qualities {
    display: flex;
    width: 100%;
    max-height: 5.2rem;
    margin: auto 0 1.25rem;
    padding: 0;
    overflow: hidden;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    justify-content: flex-start;
}

.fhv-testimonial__qualities li {
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: #fcedE7;
    color: var(--fhv-testimonial-orange);
    font-size: 0.84rem;
    font-weight: 700;
}

.fhv-testimonial__read {
    align-self: flex-end;
    padding: 0.65rem 1.45rem;
    border: 0;
    border-radius: 0.55rem;
    background: var(--fhv-testimonial-orange);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-transform: uppercase;
}

.fhv-testimonials__arrow {
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--fhv-testimonial-dark);
    cursor: pointer;
    font: inherit;
    font-size: 3.2rem;
    line-height: 1;
}

.fhv-testimonials__arrow:disabled {
    cursor: default;
    opacity: 0.25;
}

.fhv-testimonials__pagination {
    display: flex;
    margin-top: 2rem;
    gap: 0.65rem;
    justify-content: center;
}

.fhv-testimonials__dot {
    width: 0.75rem;
    height: 0.75rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #c7d0d6;
    cursor: pointer;
}

.fhv-testimonials__dot[aria-current="true"] {
    background: var(--fhv-testimonial-orange);
}

.fhv-testimonial__read:focus-visible,
.fhv-testimonials__arrow:focus-visible,
.fhv-testimonials__dot:focus-visible,
.fhv-testimonial-dialog__close:focus-visible {
    outline: 3px solid #91b8d2;
    outline-offset: 3px;
}

.fhv-testimonial-dialog {
    width: min(46rem, calc(100% - 2rem));
    max-height: min(44rem, calc(100vh - 2rem));
    padding: 0;
    border: 0;
    border-radius: 0.75rem;
    box-shadow: 0 1rem 4rem rgb(6 34 53 / 28%);
}

.fhv-testimonial-dialog::backdrop {
    background: rgb(6 34 53 / 68%);
}

.fhv-testimonial-dialog__content {
    position: relative;
    padding: clamp(1.5rem, 5vw, 3rem);
}

.fhv-testimonial-dialog__content h4 {
    margin: 1.5rem 0 0.35rem;
    color: var(--fhv-testimonial-blue);
}

.fhv-testimonial-dialog__content p {
    line-height: 1.65;
}

.fhv-testimonial-dialog__close {
    position: absolute;
    top: 0.75rem;
    right: 0.9rem;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    background: transparent;
    color: var(--fhv-testimonial-dark);
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
}

.fhv-testimonials__notice {
    padding: 1rem;
    border-left: 4px solid var(--wp--preset--color--vivid-red, #b32d2e);
    background: #fff;
}

.fhv-testimonials--wide {
    margin-block: 0;
}

.fhv-testimonials--wide .fhv-testimonials__slider {
    display: block;
    position: relative;
}

.fhv-testimonials--wide .fhv-testimonials__viewport {
    padding: 0.75rem 0 1.5rem;
}

.fhv-testimonials--wide .fhv-testimonial {
    display: grid;
    flex-basis: 100%;
    min-height: 20rem;
    padding: clamp(1.5rem, 3vw, 2.25rem) clamp(5.25rem, 7vw, 7rem);
    border: 0;
    border-radius: 1rem;
    background: var(--fhv-testimonial-orange);
    box-shadow: none;
    grid-template-columns: clamp(13rem, 23vw, 17.5rem) minmax(0, 1fr);
    column-gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    text-align: left;
}

.fhv-testimonials--wide .fhv-testimonial__photo-frame {
    z-index: 1;
    width: 100%;
    margin: 0;
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
}

.fhv-testimonials--wide .fhv-testimonial__photo {
    position: static;
    width: 100%;
    height: auto;
    border: 0;
    box-shadow: none;
    filter: grayscale(1);
}

.fhv-testimonials--wide .fhv-testimonial__content {
    grid-column: 2;
    grid-row: 1;
}

.fhv-testimonials--wide .fhv-testimonial--no-photo .fhv-testimonial__content {
    max-width: 52rem;
    grid-column: 1 / -1;
    justify-self: center;
}

.fhv-testimonials--wide .fhv-testimonial blockquote {
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.65;
}

.fhv-testimonials--wide .fhv-testimonial blockquote::before {
    display: none;
    content: none;
}

.fhv-testimonials--wide .fhv-testimonial__byline {
    margin: 1.75rem 0 0;
    color: #fff;
    font-size: 1rem;
}

.fhv-testimonials--wide .fhv-testimonial__byline strong {
    font-weight: 700;
}

.fhv-testimonials--wide .fhv-testimonials__arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--fhv-testimonial-pale);
    transform: translateY(-50%);
    place-items: center;
}

.fhv-testimonials--wide .fhv-testimonials__arrow img {
    display: block;
    width: 1rem;
    height: 1rem;
}

.fhv-testimonials--wide .fhv-testimonials__arrow--previous {
    left: 1.75rem;
}

.fhv-testimonials--wide .fhv-testimonials__arrow--previous img {
    transform: scaleX(-1);
}

.fhv-testimonials--wide .fhv-testimonials__arrow--next {
    right: 1.75rem;
}

.fhv-testimonials--wide .fhv-testimonials__pagination {
    display: none;
}

@media (max-width: 700px) {
    .fhv-testimonials__slider {
        grid-template-columns: 2.2rem minmax(0, 1fr) 2.2rem;
        gap: 0.2rem;
    }

    .fhv-testimonial {
        flex-basis: 100%;
        min-height: 32rem;
        padding-inline: 1.25rem;
    }

    .fhv-testimonials__arrow {
        width: 2.2rem;
        font-size: 2.7rem;
    }

    .fhv-testimonial blockquote {
        padding-left: 1.8rem;
    }

    .fhv-testimonials--wide .fhv-testimonials__viewport {
        padding-top: 4rem;
    }

    .fhv-testimonials--wide .fhv-testimonial {
        display: flex;
        min-height: 30rem;
        padding: 6.5rem 1.5rem 2rem;
        text-align: center;
    }

    .fhv-testimonials--wide .fhv-testimonial .fhv-testimonial__photo-frame {
        position: absolute;
        top: -3.25rem;
        width: 8.5rem;
    }

    .fhv-testimonials--wide .fhv-testimonial__content {
        display: flex;
        min-height: 100%;
        flex-direction: column;
    }

    .fhv-testimonials--wide .fhv-testimonial--no-photo {
        min-height: 24rem;
        padding-top: 2rem;
    }

    .fhv-testimonials--wide .fhv-testimonial blockquote {
        padding: 0;
        text-align: left;
    }

    .fhv-testimonials--wide .fhv-testimonial__byline {
        margin-top: auto;
        padding-top: 1.5rem;
        text-align: left;
    }

    .fhv-testimonials--wide .fhv-testimonials__arrow {
        top: 55%;
        width: 2.25rem;
        height: 2.25rem;
    }

    .fhv-testimonials--wide .fhv-testimonials__arrow--previous {
        left: -0.25rem;
    }

    .fhv-testimonials--wide .fhv-testimonials__arrow--next {
        right: -0.25rem;
    }
}

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