/* FC HP Into Center — isolated full-width homepage media/testimonial mosaic. */
.fchwic-bricks-element,
.fchwic {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    min-width: 0;
}

.fchwic {
    --fchwic-row-height: 420px;
    --fchwic-tablet-row-height: 340px;
    --fchwic-mobile-media-height: 320px;
    --fchwic-gap: 6px;
    --fchwic-radius: 0px;
    --fchwic-heading-size: 40px;
    --fchwic-heading-gap: 28px;
    --fchwic-section-bg: #ffffff;
    --fchwic-heading-color: #002e25;
    --fchwic-testimonial-size: 34px;
    --fchwic-author-size: 18px;
    --fchwic-testimonial-pad: 28px;
    --fchwic-quote-mark-size: 37px;
    --fchwic-arrow-size: 36px;
    --fchwic-arrow-inset: 18px;
    --fchwic-arrow-y: 50%;
    --fchwic-review-peek: 34px;
    --fchwic-arrow-color: #005447;
    --fchwic-arrow-hover-color: #171714;
    --fchwic-arrow-circle-bg: #d0e6f0;
    --fchwic-arrow-circle-hover-bg: #e1f0f6;
    --fchwic-image-overlay: rgba(0,0,0,.18);
    --fchwic-overlay-speed: 280ms;
    --fchwic-button-reveal-speed: 300ms;
    --fchwic-button-radius: 0px;
    --fchwic-button-font-size: 14px;
    --fchwic-button-letter-spacing: 2px;
    --fchwic-button-min-width: 220px;
    --fchwic-button-height: 48px;
    --fchwic-button-hover-speed: 360ms;
    --fchwic-button-font-weight: 700;
    --fchwic-button-text: #fff;
    --fchwic-button-bg: #171714;
    --fchwic-button-bg-opacity: 1;
    --fchwic-button-border: #171714;
    --fchwic-button-hover-text: #fff;
    --fchwic-button-animation-bg: #fff;
    --fchwic-button-animation-opacity: 1;
    --fchwic-button-hover-border: #171714;
    --fchwic-button-overlay-bg: #000;
    --fchwic-button-overlay-opacity: 0;
    --fchwic-star-size: 18px;
    --fchwic-star-color: #000;
    --fchwic-review-speed: 450ms;
    --fchwic-review-peek-effective: var(--fchwic-review-peek);
    background: var(--fchwic-section-bg);
}

.fchwic-heading {
    margin: 0 0 var(--fchwic-heading-gap);
    padding: 0;
    color: var(--fchwic-heading-color);
    font: inherit;
    font-size: var(--fchwic-heading-size);
    font-weight: 700;
    line-height: 1.1;
}

.fchwic-grid {
    box-sizing: border-box;
    display: grid;
    width: 100%;
    max-width: none;
    min-width: 0;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: repeat(2, var(--fchwic-row-height));
    gap: var(--fchwic-gap);
}

.fchwic-tile {
    box-sizing: border-box;
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-radius: var(--fchwic-radius);
}

/* Desktop parity with the OSEA reference: every mosaic tile is one exact row high. */
@media (min-width: 1200px) {
    .fchwic-tile {
        height: var(--fchwic-row-height);
        block-size: var(--fchwic-row-height);
        max-height: var(--fchwic-row-height);
    }
}

.fchwic-media-1 { grid-column: 1; grid-row: 1; }
.fchwic-media-2 { grid-column: 2; grid-row: 1; }
.fchwic-media-3 { grid-column: 3; grid-row: 1; }
.fchwic-testimonial-1 { grid-column: 4 / span 2; grid-row: 1; }
.fchwic-testimonial-2 { grid-column: 1 / span 2; grid-row: 2; }
.fchwic-media-4 { grid-column: 3; grid-row: 2; }
.fchwic-media-5 { grid-column: 4; grid-row: 2; }
.fchwic-media-6 { grid-column: 5; grid-row: 2; }

.fchwic-media {
    isolation: isolate;
    background: #f2f2f2;
}

.fchwic-media-content {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: opacity var(--fchwic-media-rotation-speed, 320ms) ease;
}

.fchwic-media-content.is-rotation-fading {
    opacity: 0;
}

.fchwic-image,
.fchwic-video,
.fchwic-image-placeholder {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.fchwic-image,
.fchwic-video {
    object-fit: cover;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.fchwic-video {
    pointer-events: none;
    background: #f2f2f2;
}

.fchwic-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #eee;
    color: #555;
    font-size: 14px;
    text-align: center;
}

.fchwic-image-overlay {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: var(--fchwic-image-overlay);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--fchwic-overlay-speed) ease;
}

.fchwic-media:hover .fchwic-image-overlay,
.fchwic-media:focus-within .fchwic-image-overlay {
    opacity: 1;
}

.fchwic-image-overlay-disabled .fchwic-image-overlay {
    opacity: 0 !important;
}

.fchwic-button-stage {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 18px 18px 8px;
    pointer-events: none;
}

.fchwic-button {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: min(100%, var(--fchwic-button-min-width));
    min-height: var(--fchwic-button-height);
    padding: 8px 28px;
    overflow: hidden;
    border: 1px solid var(--fchwic-button-border);
    border-radius: var(--fchwic-button-radius);
    background: transparent !important;
    color: var(--fchwic-button-text);
    font-size: var(--fchwic-button-font-size);
    line-height: 1.2;
    font-weight: var(--fchwic-button-font-weight);
    letter-spacing: var(--fchwic-button-letter-spacing);
    text-decoration: none !important;
    background-image: none !important;
    box-shadow: none !important;
    opacity: 0;
    transform: translate3d(0, 10px, 0) scale(.985);
    pointer-events: auto;
    backface-visibility: hidden;
    transition:
        opacity var(--fchwic-button-reveal-speed) ease,
        transform var(--fchwic-button-reveal-speed) cubic-bezier(.22,.75,.22,1),
        border-color var(--fchwic-button-hover-speed) cubic-bezier(.22,.75,.22,1),
        box-shadow var(--fchwic-button-hover-speed) cubic-bezier(.22,.75,.22,1);
}

/* Neutralize theme/link pseudo-elements that can render as a stray edge beside SHOP NOW. */
.fchwic-button::before,
.fchwic-button::after {
    content: none !important;
    display: none !important;
}

.fchwic-media:hover .fchwic-button,
.fchwic-media:focus-within .fchwic-button {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.fchwic-button-uppercase .fchwic-button {
    text-transform: uppercase;
}

.fchwic-button-base,
.fchwic-button-overlay,
.fchwic-button-animation {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.fchwic-button-base {
    z-index: 0;
    background-color: var(--fchwic-button-bg) !important;
    opacity: var(--fchwic-button-bg-opacity);
}

.fchwic-button-overlay {
    z-index: 1;
    background-color: var(--fchwic-button-overlay-bg) !important;
    opacity: var(--fchwic-button-overlay-opacity);
}

.fchwic-bricks-element:not(.fchwic-button-overlay-enabled) .fchwic-button-overlay {
    opacity: 0 !important;
}

.fchwic-button-animation {
    z-index: 2;
    background-color: var(--fchwic-button-animation-bg) !important;
    opacity: var(--fchwic-button-animation-opacity);
    transform: translate3d(-104%, 0, 0);
    will-change: transform, opacity;
    transition:
        transform var(--fchwic-button-hover-speed) cubic-bezier(.22,.75,.22,1),
        opacity var(--fchwic-button-hover-speed) cubic-bezier(.22,.75,.22,1);
}

.fchwic-button-label {
    position: relative;
    z-index: 3;
    display: block;
    pointer-events: none;
    opacity: 1 !important;
    color: var(--fchwic-button-text) !important;
    -webkit-text-fill-color: currentColor !important;
    mix-blend-mode: normal;
    transition: color var(--fchwic-button-hover-speed) cubic-bezier(.22,.75,.22,1);
}

.fchwic-button:hover,
.fchwic-button:focus-visible {
    border-color: var(--fchwic-button-hover-border);
}

.fchwic-button:hover .fchwic-button-label,
.fchwic-button:focus-visible .fchwic-button-label {
    color: var(--fchwic-button-hover-text) !important;
    -webkit-text-fill-color: currentColor !important;
}

.fchwic-button-hover-white .fchwic-button:hover .fchwic-button-label,
.fchwic-button-hover-white .fchwic-button:focus-visible .fchwic-button-label {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.fchwic-button-effect-sweep .fchwic-button-animation {
    width: 122%;
    left: -11%;
    right: auto;
    transform: translate3d(-112%, 0, 0) skewX(-10deg);
}

.fchwic-button-effect-sweep .fchwic-button:hover .fchwic-button-animation,
.fchwic-button-effect-sweep .fchwic-button:focus-visible .fchwic-button-animation {
    transform: translate3d(0, 0, 0) skewX(-10deg);
}

.fchwic-button-effect-fill-left .fchwic-button-animation {
    transform: translate3d(-104%, 0, 0);
}
.fchwic-button-effect-fill-left .fchwic-button:hover .fchwic-button-animation,
.fchwic-button-effect-fill-left .fchwic-button:focus-visible .fchwic-button-animation {
    transform: translate3d(0, 0, 0);
}

.fchwic-button-effect-fill-right .fchwic-button-animation {
    transform: translate3d(104%, 0, 0);
}
.fchwic-button-effect-fill-right .fchwic-button:hover .fchwic-button-animation,
.fchwic-button-effect-fill-right .fchwic-button:focus-visible .fchwic-button-animation {
    transform: translate3d(0, 0, 0);
}

.fchwic-button-effect-invert .fchwic-button-animation,
.fchwic-button-effect-lift .fchwic-button-animation,
.fchwic-button-effect-press .fchwic-button-animation,
.fchwic-button-effect-none .fchwic-button-animation {
    transform: none;
    opacity: 0;
}

.fchwic-button-effect-invert .fchwic-button:hover .fchwic-button-animation,
.fchwic-button-effect-invert .fchwic-button:focus-visible .fchwic-button-animation,
.fchwic-button-effect-lift .fchwic-button:hover .fchwic-button-animation,
.fchwic-button-effect-lift .fchwic-button:focus-visible .fchwic-button-animation,
.fchwic-button-effect-press .fchwic-button:hover .fchwic-button-animation,
.fchwic-button-effect-press .fchwic-button:focus-visible .fchwic-button-animation,
.fchwic-button-effect-none .fchwic-button:hover .fchwic-button-animation,
.fchwic-button-effect-none .fchwic-button:focus-visible .fchwic-button-animation {
    opacity: var(--fchwic-button-animation-opacity);
}

.fchwic-button-effect-lift .fchwic-button:hover,
.fchwic-button-effect-lift .fchwic-button:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0,0,0,.16);
}

.fchwic-button-effect-press .fchwic-button:hover,
.fchwic-button-effect-press .fchwic-button:focus-visible {
    transform: translateY(2px) scale(.985);
}

.fchwic-button-preview {
    cursor: default;
}

.fchwic-testimonial {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fchwic-testimonial-bg);
    color: var(--fchwic-testimonial-text);
}

.fchwic-review-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    isolation: isolate;
}

/* The slider itself disappears into the testimonial tile: no card, rail, dots, or panel chrome. */
.fchwic-review-slide {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translate3d(0, 0, 0);
    pointer-events: none;
    visibility: hidden;
    will-change: transform, opacity;
    transition:
        opacity var(--fchwic-review-speed) cubic-bezier(.22,.75,.22,1),
        transform var(--fchwic-review-speed) cubic-bezier(.22,.75,.22,1);
}

.fchwic-review-slide.is-active,
.fchwic-review-slide.is-peek-next,
.fchwic-review-slide.is-peek-prev,
.fchwic-review-slide.is-preparing-next,
.fchwic-review-slide.is-preparing-prev,
.fchwic-review-slide.is-leaving-next,
.fchwic-review-slide.is-leaving-prev {
    visibility: visible;
}

.fchwic-review-slide.is-active {
    z-index: 3;
    opacity: 1;
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
}

/* A quiet edge-peek makes the panel read as a carousel while keeping the review surface visually seamless.
 * Do not draw a divider/seam at the peek boundary. */
.fchwic-review-slide.is-peek-next,
.fchwic-review-slide.is-peek-prev {
    z-index: 2;
    opacity: .34;
    pointer-events: none;
    background: rgba(255,255,255,.18);
    box-shadow: none;
}

.fchwic-review-slide.is-peek-next {
    transform: translate3d(calc(100% - var(--fchwic-review-peek-effective)), 0, 0);
}

.fchwic-review-slide.is-peek-prev {
    transform: translate3d(calc(-100% + var(--fchwic-review-peek-effective)), 0, 0);
}

.fchwic-review-slide.is-preparing-next {
    z-index: 4;
    opacity: 0;
    transform: translate3d(56px, 0, 0);
}

.fchwic-review-slide.is-preparing-prev {
    z-index: 4;
    opacity: 0;
    transform: translate3d(-56px, 0, 0);
}

.fchwic-review-slide.is-leaving-next {
    z-index: 3;
    opacity: 0;
    transform: translate3d(-56px, 0, 0);
}

.fchwic-review-slide.is-leaving-prev {
    z-index: 3;
    opacity: 0;
    transform: translate3d(56px, 0, 0);
}

.fchwic-testimonial-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: var(--fchwic-testimonial-pad) calc(var(--fchwic-testimonial-pad) + var(--fchwic-arrow-size) + 18px);
    text-align: center;
}

.fchwic-quote {
    display: block;
    width: fit-content;
    max-width: min(900px, 100%);
    margin: 0 auto;
    padding: 0;
    color: inherit;
    font: inherit;
    font-size: var(--fchwic-testimonial-size);
    font-weight: 400;
    line-height: 1.18;
    letter-spacing: -.025em;
    text-align: center;
    text-wrap: balance;
}

/* Keep the quote marks attached to the actual statement: opening mark immediately
 * before the first word and closing mark immediately after the final word. */
.fchwic-review-text {
    display: inline;
    min-width: 0;
}

/* A zero-height inline box keeps large quote glyphs out of the text line-height.
 * The small optical drop aligns the visible quote mark through the center/x-height
 * of the first/last letter instead of leaving the glyph visually too high. */
.fchwic-inline-quote {
    display: inline-block;
    position: relative;
    top: .18em;
    margin: 0;
    color: var(--fchwic-testimonial-quote);
    font-family: Georgia, "Times New Roman", serif;
    font-size: var(--fchwic-quote-mark-size);
    font-weight: 400;
    line-height: 0;
    vertical-align: middle;
}

.fchwic-inline-quote-open {
    margin-right: .08em;
}

.fchwic-inline-quote-close {
    margin-left: .08em;
}

.fchwic-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin: 18px 0 0;
    color: var(--fchwic-star-color);
    font-family: Arial, Helvetica, sans-serif;
    font-size: var(--fchwic-star-size);
    line-height: 1;
    letter-spacing: 0;
}

.fchwic-star {
    display: inline-block;
    color: var(--fchwic-star-color);
}

.fchwic-star:not(.is-filled) {
    opacity: .38;
}

.fchwic-author {
    margin: 12px 0 0;
    padding: 0;
    color: inherit;
    font: inherit;
    font-size: var(--fchwic-author-size);
    font-weight: 400;
    line-height: 1.25;
    text-align: center;
}

/* Circular testimonial controls matching the supplied pale-blue chevron reference.
 * The outer hit area stays generous while the visible circle follows the backend arrow-size control. */
.fchwic-review-arrow {
    position: absolute;
    z-index: 5;
    top: clamp(calc(var(--fchwic-arrow-size) / 2), var(--fchwic-arrow-y), calc(100% - (var(--fchwic-arrow-size) / 2)));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max(46px, calc(var(--fchwic-arrow-size) + 10px));
    height: max(46px, calc(var(--fchwic-arrow-size) + 10px));
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--fchwic-arrow-color);
    opacity: 1;
    cursor: pointer;
    transform: translate3d(0, -50%, 0);
    appearance: none;
    -webkit-appearance: none;
    isolation: isolate;
    transition:
        color 220ms ease,
        transform 260ms cubic-bezier(.22,.75,.22,1);
}

.fchwic-review-arrow::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    width: var(--fchwic-arrow-size);
    height: var(--fchwic-arrow-size);
    border-radius: 50%;
    background: var(--fchwic-arrow-circle-bg);
    transform: translate(-50%, -50%);
    transition: background-color 220ms ease, transform 220ms ease;
}

.fchwic-review-arrow-prev {
    left: var(--fchwic-arrow-inset);
}

.fchwic-review-arrow-next {
    right: var(--fchwic-arrow-inset);
}

/* Backend-controlled vertical placement: 0% = top, 50% = middle, 100% = bottom.
 * clamp() keeps the visible circle fully inside the testimonial tile. */

.fchwic-review-arrow:hover,
.fchwic-review-arrow:focus-visible {
    color: var(--fchwic-arrow-hover-color);
}

.fchwic-review-arrow:hover::before,
.fchwic-review-arrow:focus-visible::before {
    background: var(--fchwic-arrow-circle-hover-bg);
    transform: translate(-50%, -50%) scale(1.04);
}

.fchwic-review-arrow-prev:hover,
.fchwic-review-arrow-prev:focus-visible {
    transform: translate3d(-4px, -50%, 0);
}

.fchwic-review-arrow-next:hover,
.fchwic-review-arrow-next:focus-visible {
    transform: translate3d(4px, -50%, 0);
}

.fchwic-review-arrow:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 3px;
}

.fchwic-arrow-svg {
    position: relative;
    z-index: 1;
    display: block;
    width: calc(var(--fchwic-arrow-size) * .42);
    height: calc(var(--fchwic-arrow-size) * .42);
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fchwic-testimonial:hover .fchwic-review-arrow,
.fchwic-testimonial:focus-within .fchwic-review-arrow {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .fchwic-review-slide,
    .fchwic-review-arrow {
        transition-duration: 1ms !important;
    }
}

/*
 * Responsive collapse follows the original mosaic instead of replacing it with
 * a generic 3-column stack. The five-column relationship is preserved while
 * there is enough room, and row height/type/padding contract together.
 */
@media (min-width: 768px) and (max-width: 1199px) {
    .fchwic-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        grid-template-rows: repeat(2, clamp(300px, 36vw, var(--fchwic-row-height)));
        grid-auto-rows: unset;
    }

    .fchwic-tile {
        height: clamp(300px, 36vw, var(--fchwic-row-height));
        block-size: clamp(300px, 36vw, var(--fchwic-row-height));
        max-height: var(--fchwic-row-height);
    }

    .fchwic-testimonial-inner {
        /* Horizontal clearance is owned by the <=1199px arrow-safe rule so the
         * 7px edge controls never collide with review copy. */
        padding-top: var(--fchwic-testimonial-pad);
        padding-bottom: var(--fchwic-testimonial-pad);
    }

    .fchwic-quote {
        /* Helvetica/sans copy reads visibly larger than the OSEA Canela reference
         * at the same numeric size. Use a restrained 20px cap in this compact
         * five-column laptop composition while keeping the supplied tracking. */
        font-size: min(var(--fchwic-testimonial-size), 20px);
        line-height: 1.35;
        letter-spacing: -0.5px;
    }

    .fchwic-inline-quote {
        font-size: min(var(--fchwic-quote-mark-size), 24px);
    }

    .fchwic-stars {
        font-size: min(var(--fchwic-star-size), 15px);
        margin-top: clamp(9px, 1.2vw, 14px);
    }

    .fchwic-author {
        margin-top: clamp(6px, .8vw, 10px);
        font-size: min(var(--fchwic-author-size), 14px);
    }

    .fchwic-button {
        min-width: min(88%, var(--fchwic-button-min-width));
        padding-left: 12px;
        padding-right: 12px;
        font-size: min(var(--fchwic-button-font-size), 12px);
        letter-spacing: min(var(--fchwic-button-letter-spacing), 1.4px);
    }
}

/* Laptop through mobile: keep the visible arrow circle 7px from the testimonial
 * border and reserve a small text-safe lane so review copy cannot collide with
 * the controls as the testimonial panel narrows. Desktop >=1200px keeps the
 * backend arrow inset and existing hover drift unchanged. */
@media (max-width: 1199px) {
    .fchwic-review-arrow-prev {
        left: calc(7px - ((max(46px, calc(var(--fchwic-arrow-size) + 10px)) - var(--fchwic-arrow-size)) / 2));
    }

    .fchwic-review-arrow-next {
        right: calc(7px - ((max(46px, calc(var(--fchwic-arrow-size) + 10px)) - var(--fchwic-arrow-size)) / 2));
    }

    .fchwic-testimonial-inner {
        padding-left: max(var(--fchwic-testimonial-pad), calc(var(--fchwic-arrow-size) + 14px));
        padding-right: max(var(--fchwic-testimonial-pad), calc(var(--fchwic-arrow-size) + 14px));
    }

    .fchwic-review-arrow-prev:hover,
    .fchwic-review-arrow-prev:focus-visible,
    .fchwic-review-arrow-next:hover,
    .fchwic-review-arrow-next:focus-visible {
        transform: translate3d(0, -50%, 0);
    }
}

/* Compact two-column composition for narrow browser widths and phone landscape.
 * This deliberately avoids the old one-card-per-row stack. */
@media (min-width: 431px) and (max-width: 767px),
       (max-width: 900px) and (orientation: landscape) {
    .fchwic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        grid-auto-rows: auto;
    }

    .fchwic-media-1 { grid-column: 1; grid-row: 1; }
    .fchwic-media-2 { grid-column: 2; grid-row: 1; }
    .fchwic-media-3 { grid-column: 1; grid-row: 2; }
    .fchwic-media-4 { grid-column: 2; grid-row: 2; }
    .fchwic-testimonial-1 { grid-column: 1 / -1; grid-row: 3; }
    .fchwic-media-5 { grid-column: 1; grid-row: 4; }
    .fchwic-media-6 { grid-column: 2; grid-row: 4; }
    .fchwic-testimonial-2 { grid-column: 1 / -1; grid-row: 5; }

    .fchwic-media {
        /* Match the portrait geometry implied by the 768x1024 source images
         * instead of forcing the cards into the old near-square 46vw height. */
        height: auto;
        block-size: auto;
        min-height: 0;
        max-height: none;
        aspect-ratio: 3 / 4;
    }

    .fchwic-testimonial {
        height: clamp(250px, 44vw, min(var(--fchwic-tablet-row-height), 330px));
        block-size: clamp(250px, 44vw, min(var(--fchwic-tablet-row-height), 330px));
        min-height: 0;
    }

    .fchwic-quote {
        /* Compact two-column phone/tablet widths need a smaller OSEA-style
         * testimonial scale than the former 26px cap. */
        font-size: min(var(--fchwic-testimonial-size), 22px);
        line-height: 1.20;
    }

    .fchwic-inline-quote {
        font-size: min(var(--fchwic-quote-mark-size), 24px);
    }

    .fchwic-stars {
        margin-top: 12px;
        font-size: min(var(--fchwic-star-size), 16px);
    }

    .fchwic-author {
        margin-top: 7px;
        font-size: min(var(--fchwic-author-size), 15px);
    }

    .fchwic-testimonial-inner {
        padding-top: var(--fchwic-testimonial-pad);
        padding-bottom: var(--fchwic-testimonial-pad);
    }

    .fchwic-button {
        min-width: min(82%, var(--fchwic-button-min-width));
    }
}

/* Extra landscape guard for short phone viewports: keep the two-column mosaic
 * compact even when the viewport width falls into the desktop/tablet range. */
@media (max-width: 900px) and (orientation: landscape) {
    .fchwic-media {
        aspect-ratio: auto;
        height: clamp(190px, 31vw, 250px);
        block-size: clamp(190px, 31vw, 250px);
    }

    .fchwic-testimonial {
        height: clamp(220px, 34vw, 270px);
        block-size: clamp(220px, 34vw, 270px);
    }

    .fchwic-testimonial-inner {
        padding-top: var(--fchwic-testimonial-pad);
        padding-bottom: var(--fchwic-testimonial-pad);
    }

    .fchwic-quote {
        font-size: min(var(--fchwic-testimonial-size), 21px);
        line-height: 1.20;
    }

    .fchwic-inline-quote {
        font-size: min(var(--fchwic-quote-mark-size), 23px);
    }

    .fchwic-stars {
        font-size: min(var(--fchwic-star-size), 15px);
    }

    .fchwic-author {
        font-size: min(var(--fchwic-author-size), 14px);
    }
}

/* Narrow-phone portrait keeps the OSEA-style two-up image mosaic.
 * Never collapse these image tiles to one full-width landscape card. */
@media (max-width: 430px) and (orientation: portrait) {
    .fchwic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        grid-auto-rows: auto;
    }

    .fchwic-media-1 { grid-column: 1; grid-row: 1; }
    .fchwic-media-2 { grid-column: 2; grid-row: 1; }
    .fchwic-media-3 { grid-column: 1; grid-row: 2; }
    .fchwic-media-4 { grid-column: 2; grid-row: 2; }
    .fchwic-testimonial-1 { grid-column: 1 / -1; grid-row: 3; }
    .fchwic-media-5 { grid-column: 1; grid-row: 4; }
    .fchwic-media-6 { grid-column: 2; grid-row: 4; }
    .fchwic-testimonial-2 { grid-column: 1 / -1; grid-row: 5; }

    .fchwic-media {
        height: auto;
        block-size: auto;
        min-height: 0;
        max-height: none;
        aspect-ratio: 9 / 16;
    }

    .fchwic-testimonial {
        height: auto;
        min-height: 250px;
    }

    .fchwic-testimonial-inner {
        padding-top: var(--fchwic-testimonial-pad);
        padding-bottom: var(--fchwic-testimonial-pad);
    }

    .fchwic-quote {
        /* Narrow portrait keeps the review visually restrained beside the
         * two-up portrait image mosaic; lower Bricks values remain respected. */
        font-size: min(var(--fchwic-testimonial-size), 21px);
        line-height: 1.20;
    }

    .fchwic-inline-quote {
        font-size: min(var(--fchwic-quote-mark-size), 23px);
    }

    .fchwic-stars {
        font-size: min(var(--fchwic-star-size), 15px);
    }

    .fchwic-author {
        font-size: min(var(--fchwic-author-size), 14px);
    }

    .fchwic-button {
        min-width: min(82%, var(--fchwic-button-min-width));
    }
}

/* Touch devices have no persistent hover. Do not leave the CTA or overlay
 * permanently visible; mobile tap-to-reveal state below owns both layers. */
@media (hover: none), (pointer: coarse) {
    .fchwic-image-overlay {
        opacity: 0;
    }
}

/* Touch-capable mobile / phone-landscape: emulate desktop hover with a deliberate tap.
 * Keep normal hover behavior intact on narrow hover-capable browser windows.
 * The first tap on an image reveals its Shop Now CTA; tapping the revealed
 * button follows the configured link. */
@media (hover: none) and (max-width: 767px),
       (pointer: coarse) and (max-width: 767px),
       (hover: none) and (max-width: 900px) and (orientation: landscape),
       (pointer: coarse) and (max-width: 900px) and (orientation: landscape) {
    .fchwic-button-stage {
        display: flex !important;
    }

    .fchwic-media .fchwic-image-overlay {
        opacity: 0 !important;
    }

    .fchwic-media .fchwic-button {
        opacity: 0 !important;
        visibility: hidden;
        pointer-events: none;
        transform: translate3d(0, 10px, 0) scale(.985);
    }

    .fchwic-media.is-mobile-cta-open .fchwic-image-overlay {
        opacity: 1 !important;
    }

    .fchwic-media.is-mobile-cta-open .fchwic-button {
        opacity: 1 !important;
        visibility: visible;
        pointer-events: auto;
        transform: translate3d(0, 0, 0) scale(1);
    }
}
