/* Shared landing-page testimonial grid, swipe carousel, and expanded quote. */
#testimonials, #testimonialNriModal { font-family: "Nanum Myeongjo", serif; font-size: 16px; line-height: normal; color: #000; text-rendering: auto; -webkit-font-smoothing: auto; }
#testimonials img, #testimonialNriModal img { display: block; max-width: 100%; }
#testimonialNriModal.modal-overlay { display: none; position: fixed; inset: 0; z-index: 2000; align-items: center; justify-content: center; }
#testimonialNriModal.modal-overlay.show { display: flex; }

/* ─── TESTIMONIALS (responsive grid + mobile carousel) ─── */
#testimonials {
    width: 100%;
    scroll-margin-top: 68px;
    overflow-x: hidden;
    overflow-y: visible;
    background: var(--yellow);
    padding: 0;
}

.testimonials-grid-wrap {
    display: block;
    max-width: 1440px;
    margin: 0 auto;
    padding: 48px 20px 56px;
    box-sizing: border-box;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 28px);
    align-items: stretch;
}

@media (min-width: 1200px) {

    /* Match card band so no cream strip between FAQ (forest) and grid */
    #testimonials {
        background: var(--yellow);
    }

    .testimonials-grid-wrap {
        padding-top: 0;
    }

    .testimonials-grid {
        gap: 0;
    }

    /* Grow photo bands to fill row height; keep names tight under copy (no flex gap) */
    .testimonial-grid-card {
        min-height: 100%;
    }

    .testimonial-grid-card .tg-blue-photo-wrap,
    .testimonial-grid-card .tg-yellow-photo-wrap {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .testimonial-grid-card .tg-blue-photo-wrap .tg-photo,
    .testimonial-grid-card .tg-yellow-photo-wrap .tg-photo {
        flex: 1 1 auto;
        min-height: 0;
        width: 100%;
        aspect-ratio: unset;
    }

    .testimonial-grid-card .tg-third-photo-wrap {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        aspect-ratio: unset;
    }

    .testimonial-grid-card .tg-third-photo {
        flex: 1 1 auto;
        min-height: 0;
        width: 100%;
    }

    .testimonial-grid-card .tg-text-stack,
    .testimonial-grid-card--text-only .tg-text-stack {
        flex: 0 1 auto;
    }

    .testimonial-grid-card .tg-long-copy-body {
        flex: 0 1 auto;
    }

    .testimonial-grid-card .tg-long-copy-body .tg-name {
        margin-top: 0.65rem;
    }
}

.testimonial-grid-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    min-height: 0;
    overflow: visible;
}

.testimonial-grid-card--blue {
    background: var(--yellow);
}

.testimonial-grid-card--yellow {
    background: var(--yellow);
}

.testimonial-grid-card--text-only {
    min-height: 100%;
}

.testimonial-grid-card .tg-blue-photo-wrap {
    position: relative;
    width: 76%;
    max-width: 440px;
    margin: clamp(16px, 3vw, 28px) auto 0;
    flex-shrink: 0;
}

.testimonial-grid-card .tg-blue-photo-wrap .tg-layer-left {
    position: absolute;
    left: calc(-40 * 100% / 440);
    top: calc(-20 * 100% / 357);
    width: calc(520 * 100% / 440);
    height: auto;
    aspect-ratio: 520 / 713;
    z-index: 4;
    pointer-events: none;
}

.testimonial-grid-card .tg-blue-photo-wrap .tg-layer-left img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}

.testimonial-grid-card .tg-blue-photo-wrap .tg-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 440 / 357;
    z-index: 1;
    overflow: hidden;
    line-height: 0;
}

.testimonial-grid-card .tg-blue-photo-wrap .tg-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.testimonial-grid-card .tg-yellow-photo-wrap {
    position: relative;
    width: 76%;
    max-width: 440px;
    margin: clamp(16px, 3vw, 28px) auto 0;
    flex-shrink: 0;
}

.testimonial-grid-card .tg-yellow-photo-wrap .tg-group-top,
.testimonial-grid-card .tg-yellow-photo-wrap .tg-group-mid {
    position: absolute;
    width: calc(147.385 * 100% / 440);
    height: auto;
    aspect-ratio: 147.385 / 156.65;
    z-index: 4;
    pointer-events: none;
}

.testimonial-grid-card .tg-yellow-photo-wrap .tg-group-top {
    left: calc(-37 * 100% / 440);
    top: 0;
}

.testimonial-grid-card .tg-yellow-photo-wrap .tg-group-mid {
    left: calc(329 * 100% / 440);
    top: calc(258 * 100% / 357);
    z-index: 1;
}

.testimonial-grid-card .tg-yellow-photo-wrap .tg-group-top img,
.testimonial-grid-card .tg-yellow-photo-wrap .tg-group-mid img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}

.testimonial-grid-card .tg-yellow-photo-wrap .tg-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 440 / 357;
    z-index: 3;
    overflow: hidden;
    line-height: 0;
}

.testimonial-grid-card .tg-yellow-photo-wrap .tg-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.testimonial-grid-card .tg-third-photo-wrap {
    position: relative;
    width: 76%;
    max-width: 440px;
    margin: clamp(16px, 3vw, 28px) auto 0;
    aspect-ratio: 440 / 357;
    flex-shrink: 0;
    overflow: visible;
}

.testimonial-grid-card .tg-third-star {
    position: absolute;
    z-index: 3;
    pointer-events: none;
}

.testimonial-grid-card .tg-third-star img {
    width: 100%;
    height: auto;
    display: block;
}

.testimonial-grid-card .tg-third-star--one {
    width: 24%;
    top: -6%;
    left: -6%;
}

.testimonial-grid-card .tg-third-star--two {
    width: 18%;
    top: -4%;
    right: -4%;
}

.testimonial-grid-card .tg-third-star--three {
    width: 20%;
    bottom: -5%;
    right: -5%;
}

.testimonial-grid-card .tg-third-photo {
    width: 100%;
    height: 100%;
    z-index: 2;
    line-height: 0;
    overflow: hidden;
}

.testimonial-grid-card .tg-third-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.testimonial-grid-card .tg-text-stack {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    margin-top: 0;
    padding-bottom: clamp(12px, 2vw, 20px);
}

.testimonial-grid-card--text-only .tg-text-stack {
    margin-top: 0;
    flex: 1 1 auto;
}

.testimonial-grid-card .tg-text-stack .tg-copy-bg {
    position: absolute;
    left: 12%;
    width: 76%;
    top: 0;
    bottom: 0;
    height: auto;
    z-index: 1;
}

.testimonial-grid-card .tg-text-stack .tg-copy-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.testimonial-grid-card .tg-long-copy-body {
    position: relative;
    z-index: 5;
    box-sizing: border-box;
    width: 86%;
    max-width: 22rem;
    margin: 0 auto;
    padding: clamp(12px, 2vw, 18px) clamp(10px, 1.5vw, 16px) clamp(14px, 2vw, 20px);
    color: var(--black);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1 1 auto;
    min-height: 0;
}

.testimonial-grid-card .tg-long-copy-body .tg-name {
    margin-top: auto;
}

.testimonial-grid-card .tg-copy {
    margin: 0;
    width: 85%;
    font-family: 'Nanum Myeongjo', serif;
    font-size: clamp(11px, 1.05vw, 14px);
    line-height: 1.5;
    color: var(--black);
    text-align: center;
}

.testimonial-grid-card .tg-copy.testimonial-copy-preview {
    overflow: hidden;
    max-height: calc(1.5em * 7);
}

.testimonial-grid-card .tg-name {
    margin: 0;
    margin-top: auto;
    padding-top: 0.5rem;
    font-family: 'Nanum Myeongjo', serif;
    font-size: clamp(11px, 1vw, 15px);
    font-weight: 700;
    letter-spacing: clamp(3px, 0.5vw, 6px);
    text-transform: uppercase;
    color: var(--black);
    text-align: center;
    width: 100%;
    max-width: 100%;
}

.testimonial-excerpt-text {
    padding: 4px;
    white-space: normal;
}

.testimonial-copy-preview {
    margin: 0;
    width: 100%;
    font-family: 'Nanum Myeongjo', serif;
    font-size: 14px;
    line-height: 21px;
    color: var(--black);
    text-align: center;
    overflow: hidden;
    max-height: calc(21px * 7);
}

.testimonial-read-more {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    font-family: 'Nanum Myeongjo', serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--maroon);
    text-decoration: underline;
    text-underline-offset: 3px;
    display: inline;
    vertical-align: baseline;
    margin-left: 0.35em;
    white-space: nowrap;
}

.testimonial-read-more:hover,
.testimonial-read-more:focus-visible {
    color: var(--forest);
    outline: none;
}

.testimonial-read-more:focus-visible {
    box-shadow: 0 0 0 2px var(--yellow);
}

.testimonials-mobile {
    display: none;
}

/* Testimonial “Read more” — blurred scrim, card-style panel, scrollable quote */
#testimonialNriModal.modal-overlay {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background: rgba(86, 16, 35, 0.58);
}

#testimonialNriModal .testimonial-modal-panel {
    background: var(--cream);
    border: 2px solid var(--maroon);
    border-radius: 0;
    max-width: min(400px, 92vw);
    width: 92%;
    max-height: min(88vh, 820px);
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 6px 6px 0px var(--coral, #e45558) !important;
    position: relative;
}

#testimonialNriModal .testimonial-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 6;
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--maroon);
    border-radius: 0;
    background: var(--cream);
    color: var(--maroon);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#testimonialNriModal .testimonial-modal-close:hover,
#testimonialNriModal .testimonial-modal-close:focus-visible {
    background: var(--offwhite);
    box-shadow: 2px 2px 0 var(--maroon);
    outline: none;
}

#testimonialNriModal .testimonial-modal-photo {
    width: 100%;
    aspect-ratio: 440 / 300;
    overflow: hidden;
    flex-shrink: 0;
    border-bottom: 2px solid var(--maroon);
}

#testimonialNriModal .testimonial-modal-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#testimonialNriModal .testimonial-modal-copy-wrap {
    padding: 1.15rem 1.35rem 1.35rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
    background: var(--cream);
}

#testimonialNriModal .testimonial-modal-quote-scroll {
    width: 100%;
    max-height: min(42vh, 360px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* old Edge/IE */
}

#testimonialNriModal .testimonial-modal-quote-scroll::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, new Edge */
}

#testimonialNriModal .testimonial-modal-quote {
    margin: 0;
    font-family: 'Nanum Myeongjo', serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--maroon);
    text-align: center;
}

#testimonialNriModal .testimonial-modal-quote p {
    margin: 0 0 0.85em;
}

#testimonialNriModal .testimonial-modal-quote p:last-child {
    margin-bottom: 0;
}

#testimonialNriModal .testimonial-modal-name {
    margin: 0;
    font-family: 'Nanum Myeongjo', serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.28em;
    color: var(--maroon);
    text-transform: uppercase;
    text-align: center;
}

@media (max-width: 480px) {
    #testimonialNriModal .testimonial-modal-quote-scroll {
        max-height: min(50vh, 280px);
    }
}

/* Testimonials: grid ≥1200px; carousel ≤1199px (tablet 2-up, phone 1-up) */
@media (max-width: 1199px) {
    .testimonials-grid-wrap {
        display: none !important;
    }

    #testimonials {
        overflow: hidden;
        padding: 20px 0 16px;
        background: var(--yellow);
    }

    #testimonials.testimonials-theme-yellow {
        background: var(--yellow);
    }

    #testimonials.testimonials-theme-blue {
        background: var(--yellow);
    }

    .testimonials-mobile {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .testimonials-mobile-viewport {
        display: flex;
        align-items: stretch;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        touch-action: pan-x;
        gap: 0;
        max-width: 1440px;
        margin: 0 auto;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .testimonials-mobile-viewport::-webkit-scrollbar {
        display: none;
    }

    .testimonials-mobile-slide {
        min-height: 0;
        scroll-snap-align: start;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        box-sizing: border-box;
        padding: 16px 0;
    }

    .testimonials-mobile-slide--blue {
        background: var(--yellow);
    }

    .testimonials-mobile-slide--yellow {
        background: var(--yellow);
    }

    @media (min-width: 768px) {
        .testimonials-mobile-slide {
            flex: 0 0 50%;
            min-width: 50%;
            max-width: 50%;
            min-height: min(68vh, 620px);
        }

        .testimonials-mobile-viewport::after {
            content: '';
            flex: 0 0 50%;
            min-width: 50%;
            flex-shrink: 0;
            scroll-snap-align: none;
            pointer-events: none;
        }
    }

    .testimonial-mobile-card {
        position: relative;
        width: 100%;
        aspect-ratio: 720 / 900;
        overflow: hidden;
    }

    .testimonial-mobile-card--blue {
        background: var(--yellow);
    }

    .testimonial-mobile-card--yellow {
        background: var(--yellow);
    }

    .testimonial-mobile-card--text-only .tm-third-photo-wrap {
        position: relative;
        width: 76%;
        max-width: 100%;
        margin: 5% auto 0;
        aspect-ratio: 440 / 357;
        flex-shrink: 0;
        overflow: visible;
    }

    .testimonial-mobile-card--text-only .tm-third-star {
        position: absolute;
        z-index: 3;
        pointer-events: none;
    }

    .testimonial-mobile-card--text-only .tm-third-star img {
        width: 100%;
        height: auto;
        display: block;
    }

    .testimonial-mobile-card--text-only .tm-third-star--one {
        width: 24%;
        top: -6%;
        left: -6%;
    }

    .testimonial-mobile-card--text-only .tm-third-star--two {
        width: 18%;
        top: -4%;
        right: -4%;
    }

    .testimonial-mobile-card--text-only .tm-third-star--three {
        width: 20%;
        bottom: -5%;
        right: -5%;
    }

    .testimonial-mobile-card--text-only .tm-third-photo {
        width: 100%;
        height: 100%;
        z-index: 2;
        line-height: 0;
        overflow: hidden;
    }

    .testimonial-mobile-card--text-only .tm-third-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .tm-layer-left {
        position: absolute;
        left: 12.5%;
        top: 7.2%;
        width: 75%;
        height: 86%;
        z-index: 0;
        pointer-events: none;
    }

    .tm-group-top,
    .tm-group-mid {
        position: absolute;
        width: 20.47%;
        height: 17.406%;
        z-index: 4;
        pointer-events: none;
    }

    /* Coral clusters: align with photo band (12% / 76% wide, 10%–60% tall on default card) */
    .tm-group-top {
        left: 11%;
        top: 9%;
    }

    .tm-group-mid {
        left: 66%;
        top: 44%;
    }

    .tm-photo,
    .tm-copy-bg {
        position: absolute;
        left: 12%;
        width: 76%;
    }

    .tm-photo {
        top: 10%;
        height: 50%;
        z-index: 3;
        overflow: hidden;
    }

    .tm-copy-bg {
        top: 56.5%;
        height: 35%;
        z-index: 1;
    }

    .tm-layer-left img,
    .tm-photo img,
    .tm-copy-bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .tm-group-top img,
    .tm-group-mid img {
        width: 100%;
        height: 100%;
        object-fit: fill;
        display: block;
    }

    .tm-name,
    .tm-copy {
        position: absolute;
        z-index: 5;
        color: var(--black);
        text-align: center;
    }

    .tm-name {
        font-family: 'Nanum Myeongjo', serif;
        font-size: clamp(10px, 2.8vw, 14px);
        font-weight: 700;
        letter-spacing: clamp(3px, 1.1vw, 6px);
        text-transform: uppercase;
        left: 50%;
        top: 85.8%;
        width: max-content;
        max-width: 92%;
        text-align: center;
        transform: translateX(-50%);
    }

    .tm-copy {
        left: 22%;
        top: 62.8%;
        width: 56%;
        font-family: 'Nanum Myeongjo', serif;
        font-size: clamp(8.4px, 2.2vw, 10.4px);
        line-height: 1.34;
    }

    /* Long-copy cards (blue + yellow + text-only): same flex shell; slide stretch → equal height */
    .testimonial-mobile-card--blue.testimonial-mobile-card--long-copy,
    .testimonial-mobile-card--yellow.testimonial-mobile-card--long-copy,
    .testimonial-mobile-card--text-only.testimonial-mobile-card--long-copy {
        aspect-ratio: unset;
        width: 100%;
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        align-self: stretch;
        overflow: visible;
    }

    .testimonial-mobile-card--text-only .tm-text-stack {
        margin-top: 0;
        padding-bottom: clamp(12px, 4vw, 24px);
    }

    /*
        * Blue: magenta layer vs photo — desktop Figma (photo 440×357 @ 140,127; layer 520×713 @ 100,107).
        * No extra vertical nudge: pushing the layer down hid the seam scallops behind the opaque cream panel.
        */
    .testimonial-mobile-card--blue.testimonial-mobile-card--long-copy .tm-blue-photo-wrap {
        position: relative;
        width: 76%;
        max-width: 100%;
        margin: 5% auto 0;
        margin-bottom: 0;
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: visible;
    }

    .testimonial-mobile-card--blue.testimonial-mobile-card--long-copy .tm-blue-photo-wrap .tm-layer-left {
        position: absolute;
        left: calc(-40 * 100% / 440);
        top: calc(-20 * 100% / 357);
        width: calc(520 * 100% / 440);
        height: auto;
        aspect-ratio: 520 / 713;
        bottom: auto;
        right: auto;
        z-index: 4;
        pointer-events: none;
    }

    .testimonial-mobile-card--blue.testimonial-mobile-card--long-copy .tm-blue-photo-wrap .tm-layer-left img {
        object-fit: fill;
    }

    .testimonial-mobile-card--blue.testimonial-mobile-card--long-copy .tm-blue-photo-wrap .tm-photo {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        width: 100%;
        max-width: 100%;
        margin: 0;
        flex: 1 1 auto;
        min-height: 0;
        height: auto;
        aspect-ratio: unset;
        z-index: 1;
        display: block;
        overflow: hidden;
        line-height: 0;
    }

    .testimonial-mobile-card--blue.testimonial-mobile-card--long-copy .tm-blue-photo-wrap .tm-photo img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /*
        * Yellow: coral clusters vs photo — desktop Figma (photo right 440×357 @ 860,127;
        * group-top 147.385×156.65 @ 823,127; group-mid @ 1189,385).
        */
    .testimonial-mobile-card--yellow.testimonial-mobile-card--long-copy .tm-yellow-photo-wrap {
        position: relative;
        width: 76%;
        max-width: 100%;
        margin: 5% auto 0;
        margin-bottom: 0;
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: visible;
    }

    .testimonial-mobile-card--yellow.testimonial-mobile-card--long-copy .tm-yellow-photo-wrap .tm-group-top,
    .testimonial-mobile-card--yellow.testimonial-mobile-card--long-copy .tm-yellow-photo-wrap .tm-group-mid {
        width: calc(147.385 * 100% / 440);
        height: auto;
        aspect-ratio: 147.385 / 156.65;
        z-index: 4;
    }

    .testimonial-mobile-card--yellow.testimonial-mobile-card--long-copy .tm-yellow-photo-wrap .tm-group-top {
        left: calc(-37 * 100% / 440);
        top: 0;
    }

    .testimonial-mobile-card--yellow.testimonial-mobile-card--long-copy .tm-yellow-photo-wrap .tm-group-mid {
        left: calc(329 * 100% / 440);
        top: calc(258 * 100% / 357);
        z-index: 1;
    }

    .testimonial-mobile-card--yellow.testimonial-mobile-card--long-copy .tm-yellow-photo-wrap .tm-photo {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        width: 100%;
        max-width: 100%;
        margin: 0;
        flex: 1 1 auto;
        min-height: 0;
        height: auto;
        aspect-ratio: unset;
        z-index: 3;
        display: block;
        overflow: hidden;
        line-height: 0;
    }

    .testimonial-mobile-card--yellow.testimonial-mobile-card--long-copy .tm-yellow-photo-wrap .tm-photo img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .testimonial-mobile-card--text-only.testimonial-mobile-card--long-copy .tm-third-photo-wrap {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        aspect-ratio: unset;
    }

    .testimonial-mobile-card--text-only.testimonial-mobile-card--long-copy .tm-third-photo {
        flex: 1 1 auto;
        min-height: 0;
        height: auto;
    }

    /* Cream + quote: compact height; extra row space goes to photo band above */
    .testimonial-mobile-card--long-copy .tm-text-stack {
        position: relative;
        width: 100%;
        z-index: 2;
        margin-top: 0;
        padding-bottom: 6%;
        flex: 0 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .testimonial-mobile-card--long-copy .tm-text-stack .tm-copy-bg {
        position: absolute;
        left: 12%;
        width: 76%;
        top: 0;
        right: auto;
        bottom: 0;
        height: auto;
    }

    .testimonial-mobile-card--long-copy .tm-text-stack .tm-copy-bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .testimonial-mobile-card--long-copy .tm-long-copy-body {
        box-sizing: border-box;
        color: var(--black);
        text-align: center;
    }

    .testimonial-mobile-card--long-copy .tm-text-stack .tm-long-copy-body {
        position: relative;
        z-index: 5;
        left: auto;
        width: 86%;
        max-width: 22rem;
        margin: 0 auto;
        padding: clamp(12px, 3.2vw, 18px) clamp(14px, 5vw, 22px) clamp(14px, 3.8vw, 20px);
        min-height: 0;
        background: transparent;
        flex: 0 1 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 0.65rem;
        box-sizing: border-box;
    }

    .testimonial-mobile-card--long-copy .tm-long-copy-body .tm-copy {
        position: static;
        left: auto;
        top: auto;
        width: 100%;
        max-width: 22rem;
        margin: 0;
        font-size: clamp(11px, 3.1vw, 14px);
        line-height: 1.5;
    }

    .testimonial-mobile-card--long-copy .tm-long-copy-body .tm-name {
        position: static;
        margin-bottom: 0;
        width: 100%;
        max-width: 100%;
        text-align: center;
        transform: none;
        left: auto;
    }

    .testimonial-mobile-card--long-copy .tm-text-stack .tm-long-copy-body .tm-name {
        margin-top: 0.65rem;
        padding-top: 0;
    }

    .testimonial-mobile-card--long-copy .tm-copy--excerpt {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        max-height: calc(1.5em * 6);
    }

    .testimonial-mobile-card--long-copy .tm-read-more-bottom {
        flex-shrink: 0;
        margin-top: 0.15em;
    }

    .testimonial-mobile-card--long-copy .tm-read-more-bottom.testimonial-read-more {
        font-size: clamp(9px, 2.5vw, 11px);
        letter-spacing: 0.12em;
        box-shadow: none;
    }

    .testimonial-mobile-card--long-copy .tm-read-more-bottom.testimonial-read-more:focus-visible {
        box-shadow: none;
        outline: 2px solid var(--maroon);
        outline-offset: 2px;
    }

    .testimonials-mobile-dots {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-top: 14px;
    }

    .testimonials-mobile-dot {
        width: 8px;
        height: 8px;
        border: 0;
        border-radius: 999px;
        background: rgba(86, 16, 35, 0.28);
        transition: width 0.24s ease, background-color 0.24s ease;
        padding: 0;
        cursor: pointer;
    }

    .testimonials-mobile-dot.is-active {
        width: 24px;
        background: var(--maroon);
    }

    /* 2-up tablet: must follow long-copy rules above or margin/flex/height overrides win */
    @media (min-width: 768px) {

        .testimonial-mobile-card--blue.testimonial-mobile-card--long-copy .tm-blue-photo-wrap,
        .testimonial-mobile-card--yellow.testimonial-mobile-card--long-copy .tm-yellow-photo-wrap,
        .testimonial-mobile-card--text-only.testimonial-mobile-card--long-copy .tm-third-photo-wrap {
            margin-top: 14px;
            margin-left: auto;
            margin-right: auto;
            margin-bottom: 0;
            flex: 0 0 auto;
        }

        .testimonial-mobile-card--blue.testimonial-mobile-card--long-copy .tm-blue-photo-wrap .tm-photo,
        .testimonial-mobile-card--yellow.testimonial-mobile-card--long-copy .tm-yellow-photo-wrap .tm-photo,
        .testimonial-mobile-card--text-only.testimonial-mobile-card--long-copy .tm-third-photo {
            flex: 0 0 auto;
            min-height: clamp(220px, 28vw, 300px);
            height: clamp(220px, 28vw, 300px);
            max-height: 300px;
        }

        /* Equal row height: grow cream block; pin names to same baseline across columns */
        .testimonial-mobile-card--blue.testimonial-mobile-card--long-copy,
        .testimonial-mobile-card--yellow.testimonial-mobile-card--long-copy,
        .testimonial-mobile-card--text-only.testimonial-mobile-card--long-copy {
            flex: 1 1 auto;
            min-height: 0;
        }

        .testimonial-mobile-card--long-copy .tm-text-stack {
            flex: 1 1 auto;
            min-height: 0;
        }

        .testimonial-mobile-card--long-copy .tm-text-stack .tm-long-copy-body {
            flex: 1 1 auto;
            min-height: 0;
        }

        .testimonial-mobile-card--long-copy .tm-text-stack .tm-long-copy-body .tm-name {
            margin-top: auto;
            padding-top: 0.65rem;
        }
    }

    @media (max-width: 767px) {
        .testimonials-mobile-viewport {
            width: 100%;
            max-width: 100%;
            padding: 0;
            box-sizing: border-box;
        }

        .testimonials-mobile-viewport::after {
            display: none !important;
            content: none !important;
            flex: 0 0 0 !important;
            min-width: 0 !important;
        }

        .testimonials-mobile-slide {
            flex: 0 0 100%;
            width: 100%;
            min-width: 0;
            max-width: 100%;
            padding: 12px 14px;
            box-sizing: border-box;
            overflow: hidden;
        }

        .testimonial-mobile-card--blue.testimonial-mobile-card--long-copy,
        .testimonial-mobile-card--yellow.testimonial-mobile-card--long-copy,
        .testimonial-mobile-card--text-only.testimonial-mobile-card--long-copy {
            width: 100%;
            max-width: 100%;
            overflow: hidden;
            box-sizing: border-box;
        }

        .testimonial-mobile-card--blue.testimonial-mobile-card--long-copy .tm-blue-photo-wrap,
        .testimonial-mobile-card--yellow.testimonial-mobile-card--long-copy .tm-yellow-photo-wrap,
        .testimonial-mobile-card--text-only.testimonial-mobile-card--long-copy .tm-third-photo-wrap {
            width: min(76%, calc(100% - 12px));
            margin-top: 14px;
            margin-left: auto;
            margin-right: auto;
            margin-bottom: 0;
            flex: 0 0 auto;
        }

        .testimonial-mobile-card--text-only.testimonial-mobile-card--long-copy .tm-third-star--one {
            left: 0;
        }

        .testimonial-mobile-card--text-only.testimonial-mobile-card--long-copy .tm-third-star--two {
            right: 0;
        }

        .testimonial-mobile-card--text-only.testimonial-mobile-card--long-copy .tm-third-star--three {
            right: 0;
        }

        .testimonial-mobile-card--blue.testimonial-mobile-card--long-copy .tm-blue-photo-wrap .tm-layer-left {
            left: 0;
            width: 88%;
        }

        .testimonial-mobile-card--yellow.testimonial-mobile-card--long-copy .tm-yellow-photo-wrap .tm-group-top {
            left: 0;
        }

        .testimonial-mobile-card--blue.testimonial-mobile-card--long-copy .tm-blue-photo-wrap .tm-photo,
        .testimonial-mobile-card--yellow.testimonial-mobile-card--long-copy .tm-yellow-photo-wrap .tm-photo,
        .testimonial-mobile-card--text-only.testimonial-mobile-card--long-copy .tm-third-photo {
            flex: 0 0 auto;
            min-height: clamp(220px, 52vw, 300px);
            height: clamp(220px, 52vw, 300px);
            max-height: 300px;
        }

        .testimonial-mobile-card--blue.testimonial-mobile-card--long-copy,
        .testimonial-mobile-card--yellow.testimonial-mobile-card--long-copy,
        .testimonial-mobile-card--text-only.testimonial-mobile-card--long-copy {
            flex: 0 1 auto;
            min-height: 0;
        }

        .testimonial-mobile-card--long-copy .tm-text-stack {
            flex: 0 1 auto;
            min-height: 0;
            width: 100%;
        }

        .testimonial-mobile-card--long-copy .tm-text-stack .tm-long-copy-body {
            flex: 0 1 auto;
            min-height: 0;
            width: min(86%, calc(100% - 8px));
        }

        .testimonial-mobile-card--long-copy .tm-text-stack .tm-long-copy-body .tm-name {
            margin-top: 0.65rem;
            padding-top: 0;
        }
    }
}

/* Keep vertical page scrolling available during a horizontal swipe. */
.testimonials-mobile-viewport { touch-action: auto; }
