#reviews.reviews-showcase {
    --review-bg: #ffffff;
    --review-card: #ffffff;
    --review-text: #0f172a;
    --review-muted: #667085;
    --review-soft: #f8fafc;
    --review-border: #e6ebf2;
    --review-star: #ffc400;
    --review-shadow: 0 16px 34px rgba(15, 23, 42, 0.09);
    --review-strong-shadow: 0 20px 46px rgba(15, 23, 42, 0.13);
    position: relative;
    overflow: hidden;
    contain: layout paint;
    content-visibility: auto;
    contain-intrinsic-size: 900px;
    scroll-margin-top: 96px;
    padding: 30px 30px 32px;
    background: var(--review-bg);
    color: var(--review-text);
    text-align: center;
}

#reviews.reviews-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0), rgba(248, 250, 252, 0.55) 52%, rgba(255, 255, 255, 0));
    opacity: 0.72;
}

.reviews-showcase > * {
    position: relative;
    z-index: 1;
}

.reviews-showcase-heading {
    display: grid;
    gap: 8px;
    max-width: 720px;
    margin: 0 auto 16px;
}

.reviews-showcase-heading h2 {
    margin: 0;
    color: var(--review-text);
    font-size: 32px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: 0;
}

.reviews-showcase-heading p {
    margin: 0;
    color: var(--review-muted);
    font-size: 15px;
    line-height: 1.55;
}

.reviews-rating-summary {
    display: grid;
    justify-items: center;
    gap: 6px;
    margin: 0 auto 22px;
}

.reviews-average-line {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    direction: ltr;
    unicode-bidi: isolate;
    line-height: 1;
}

.reviews-average-line strong {
    color: var(--review-text);
    font-size: 46px;
    font-weight: 950;
    letter-spacing: 0;
}

.reviews-average-line span {
    color: var(--review-muted);
    font-size: 25px;
    font-weight: 850;
}

.review-stars {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    direction: ltr;
    color: var(--review-star);
}

.review-star-glyph {
    display: inline-block;
    color: rgba(148, 163, 184, 0.38);
    line-height: 1;
    transform-origin: center;
}

.review-star-glyph.is-filled {
    color: var(--review-star);
}

.review-stars-large .review-star-glyph {
    font-size: 26px;
}

.reviews-rating-summary p {
    margin: 0;
    color: var(--review-muted);
    font-size: 14px;
    line-height: 1.45;
}

.reviews-carousel {
    display: grid;
    gap: 14px;
    max-width: 720px;
    margin: 0 auto;
}

#reviews.reviews-showcase .review-slider-container {
    position: relative;
    display: block;
    min-height: 190px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    text-align: start;
}

#reviews.reviews-showcase .review-showcase-card {
    display: grid;
    align-content: center;
    box-sizing: border-box;
    width: min(680px, 100%);
    min-height: 190px;
    margin: 0 auto;
    padding: 22px 28px;
    border: 1px solid var(--review-border);
    border-radius: 8px;
    background: var(--review-card);
    color: var(--review-text);
    box-shadow: var(--review-shadow);
    animation: reviewCardIn 430ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.review-showcase-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--review-strong-shadow);
}

.review-card-top {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    margin-bottom: 14px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.94), rgba(72, 85, 99, 0.92));
    color: #ffffff;
    font-size: 17px;
    font-weight: 950;
    border: 2px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
}

.review-card-person {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.review-card-person h4 {
    margin: 0;
    color: var(--review-text);
    font-size: 18px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

#reviews.reviews-showcase .review-slide .stars,
.review-card-person .review-stars {
    justify-content: flex-start;
}

.review-card-person .review-star-glyph {
    font-size: 21px;
}

.review-date {
    color: var(--review-muted);
    font-size: 13px;
    font-weight: 760;
    line-height: 1.35;
}

.review-card-headline {
    margin: 0 0 8px;
    color: var(--review-text);
    font-size: 16px;
    line-height: 1.35;
    font-weight: 900;
}

#reviews.reviews-showcase .review-quote {
    margin: 0;
    color: var(--review-muted);
    color: color-mix(in srgb, var(--review-text) 78%, var(--review-muted));
    font-size: 16px;
    line-height: 1.65;
    font-style: italic;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.reviews-empty-state {
    min-height: 180px;
    display: grid;
    place-items: center;
    padding: 28px;
    border: 1px dashed var(--review-border);
    border-radius: 8px;
    color: var(--review-muted);
    background: var(--review-soft);
    font-weight: 850;
}

.reviews-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    direction: ltr;
}

.reviews-arrow {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--review-border);
    border-radius: 50%;
    background: var(--review-card);
    color: var(--review-text);
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, opacity 180ms ease;
}

.reviews-arrow:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
}

.reviews-arrow:active {
    transform: scale(0.95);
}

.reviews-arrow:disabled {
    cursor: default;
    opacity: 0.35;
    transform: none;
    box-shadow: none;
}

.reviews-arrow .material-symbols-outlined {
    direction: ltr;
    font-size: 24px;
    line-height: 1;
    unicode-bidi: isolate;
}

.reviews-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 88px;
    min-height: 22px;
}

.reviews-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: rgba(148, 163, 184, 0.42);
    cursor: pointer;
    transition: width 260ms cubic-bezier(0.22, 1, 0.36, 1), background 180ms ease, transform 180ms ease;
}

.reviews-dot:hover {
    transform: translateY(-1px);
    background: rgba(15, 23, 42, 0.58);
}

.reviews-dot.is-active {
    width: 34px;
    background: var(--review-text);
}

#reviews.reviews-showcase .review-form-card {
    max-width: 520px;
    margin: 18px auto 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    text-align: start;
}

.review-form-toggle,
.review-submit-btn,
.review-cancel-btn {
    width: 100%;
    min-height: 56px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, opacity 180ms ease;
}

.review-form-toggle,
.review-submit-btn {
    border: 0;
    background: #000000;
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
}

.review-form-toggle:hover,
.review-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.22);
}

.review-form-toggle:active,
.review-submit-btn:active,
.review-cancel-btn:active {
    transform: scale(0.98);
}

.review-form-panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(14px) scale(0.98);
    pointer-events: none;
    transition: max-height 380ms cubic-bezier(0.22, 1, 0.36, 1), opacity 240ms ease, transform 280ms ease, margin 240ms ease;
}

.review-form-card.is-open .review-form-toggle {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    pointer-events: none;
}

.review-form-card.is-open .review-form-panel {
    max-height: 640px;
    opacity: 1;
    margin-top: -56px;
    padding: 26px;
    border: 1px solid var(--review-border);
    border-radius: 8px;
    background: var(--review-card);
    box-shadow: var(--review-strong-shadow);
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.review-form-panel h3 {
    margin: 0 0 20px;
    color: var(--review-text);
    font-size: 18px;
    line-height: 1.3;
    font-weight: 950;
    text-align: start;
}

.review-field-label {
    display: block;
    margin: 18px 0 8px;
    color: var(--review-text);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.35;
}

#reviews.reviews-showcase .star-rating {
    display: inline-flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 7px;
    margin: 0;
    direction: ltr;
}

#reviews.reviews-showcase .star-rating .star {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(148, 163, 184, 0.46);
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
    transition: color 170ms ease, transform 170ms ease, filter 170ms ease;
}

#reviews.reviews-showcase .star-rating .star.selected,
#reviews.reviews-showcase .star-rating .star.is-preview {
    color: var(--review-star);
}

#reviews.reviews-showcase .star-rating .star:hover,
#reviews.reviews-showcase .star-rating .star:focus-visible {
    transform: translateY(-2px) scale(1.12);
    outline: 0;
}

#reviews.reviews-showcase input,
#reviews.reviews-showcase textarea {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    border: 1px solid var(--review-border);
    border-radius: 8px;
    background: color-mix(in srgb, var(--review-card) 96%, var(--review-soft));
    color: var(--review-text);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    text-align: start;
}

#reviews.reviews-showcase textarea {
    min-height: 116px;
    resize: vertical;
}

.review-form-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    margin-top: 22px;
}

.review-cancel-btn {
    border: 1px solid var(--review-border);
    background: var(--review-card);
    color: var(--review-text);
    box-shadow: none;
}

.review-cancel-btn:hover {
    background: var(--review-soft);
}

.review-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.review-submit-btn:disabled {
    opacity: 0.62;
    cursor: wait;
    transform: none;
}

.review-submit-btn .material-symbols-outlined {
    font-size: 20px;
}

html[dir="rtl"] #reviews.reviews-showcase,
#reviews.reviews-showcase[dir="rtl"] {
    text-align: center;
}

html[dir="rtl"] .review-card-top {
    direction: rtl;
}

html[dir="rtl"] .review-card-person .review-stars {
    justify-content: flex-start;
}

body.dark-mode #reviews.reviews-showcase {
    --review-bg: #0b0b0c;
    --review-card: #171717;
    --review-text: #f8fafc;
    --review-muted: #a8b0bd;
    --review-soft: #111318;
    --review-border: rgba(255, 255, 255, 0.09);
    --review-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
    --review-strong-shadow: 0 20px 46px rgba(0, 0, 0, 0.4);
    background: var(--review-bg);
}

body.dark-mode #reviews.reviews-showcase::before {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 56%);
    opacity: 1;
}

body.dark-mode .review-form-toggle,
body.dark-mode .review-submit-btn {
    background: #ffffff;
    color: #050505;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}

body.dark-mode .review-form-toggle:hover,
body.dark-mode .review-submit-btn:hover {
    background: #f8fafc;
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.42);
}

body.dark-mode .review-avatar {
    border-color: rgba(255, 255, 255, 0.14);
    background:
        linear-gradient(135deg, #020617, #334155);
}

body.dark-mode .reviews-dot:hover {
    background: rgba(255, 255, 255, 0.58);
}

@keyframes reviewCardIn {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.975);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 760px) {
    #reviews.reviews-showcase {
        padding: 30px 18px 30px;
    }

    .reviews-showcase-heading h2 {
        font-size: 28px;
    }

    .reviews-showcase-heading p {
        font-size: 14px;
    }

    .reviews-average-line strong {
        font-size: 44px;
    }

    .reviews-average-line span {
        font-size: 23px;
    }

    .reviews-rating-summary {
        margin-bottom: 24px;
    }

    #reviews.reviews-showcase .review-slider-container {
        min-height: 286px;
    }

    #reviews.reviews-showcase .review-showcase-card {
        align-content: start;
        min-height: 264px;
        padding: 32px 20px 26px;
    }

    .review-card-top {
        gap: 13px;
        margin-bottom: 16px;
    }

    .review-avatar {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
    }

    .review-card-person h4 {
        font-size: 18px;
    }

    .review-quote {
        font-size: 15px;
        line-height: 1.65;
    }

    .review-form-card.is-open .review-form-panel {
        padding: 22px 18px;
    }
}

@media (max-width: 420px) {
    #reviews.reviews-showcase {
        padding: 30px 16px 30px;
    }

    .reviews-showcase-heading {
        margin-bottom: 22px;
    }

    .reviews-showcase-heading h2 {
        font-size: 28px;
    }

    #reviews.reviews-showcase .review-slider-container {
        min-height: 292px;
    }

    #reviews.reviews-showcase .review-showcase-card {
        min-height: 276px;
        padding: 32px 18px 26px;
    }

    .reviews-carousel-controls {
        gap: 12px;
    }

    .reviews-arrow {
        width: 44px;
        height: 44px;
    }

    .reviews-dots {
        min-width: 76px;
        gap: 7px;
    }

    .reviews-dot.is-active {
        width: 30px;
    }

    .review-form-actions {
        grid-template-columns: 1fr;
    }

    .review-form-toggle,
    .review-submit-btn,
    .review-cancel-btn {
        min-height: 54px;
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .review-showcase-card,
    .reviews-arrow,
    .reviews-dot,
    .review-form-toggle,
    .review-submit-btn,
    .review-cancel-btn,
    .review-form-panel,
    #reviews.reviews-showcase .star-rating .star {
        animation: none !important;
        transition: none !important;
    }
}

/* Review photos: responsive card, upload field, and full-quality viewer. */
#reviews.reviews-showcase .review-showcase-card.has-photo {
    width: min(840px, 100%);
    min-height: 320px;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    align-items: stretch;
    align-content: stretch;
    gap: 28px;
    padding: 14px;
}

#reviews.reviews-showcase .reviews-carousel:has(.review-showcase-card.has-photo) {
    max-width: 920px;
}

.review-card-photo {
    position: relative;
    display: block;
    min-height: 292px;
    max-height: 360px;
    aspect-ratio: 4 / 5;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    background: #0a0d14;
    cursor: zoom-in;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
}

.review-card-photo img {
    width: 100%;
    height: 100%;
    min-height: 292px;
    display: block;
    object-fit: contain;
    transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.review-card-photo:hover img,
.review-card-photo:focus-visible img { transform: scale(1.035); }

.review-card-photo::after {
    content: "zoom_in";
    font-family: "Material Symbols Outlined";
    position: absolute;
    inset-inline-end: 12px;
    inset-block-end: 12px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(8, 15, 29, 0.82);
    color: #fff;
    font-size: 21px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
}

.review-card-content {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 22px 20px;
    text-align: start;
}

.review-photo-field {
    display: grid;
    gap: 11px;
    margin-top: 4px;
    padding: 15px;
    border: 1px solid var(--review-border);
    border-radius: 10px;
    background: var(--review-soft);
}

.review-photo-copy { display: grid; gap: 4px; }
.review-photo-copy strong { color: var(--review-text); font-size: 14px; }
.review-photo-copy span { color: var(--review-muted); font-size: 12px; line-height: 1.5; }
.review-photo-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.review-photo-picker {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px dashed #94a3b8;
    border-radius: 9px;
    background: #fff;
    color: #111827;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.review-photo-picker:hover { border-color: #111827; background: #f8fafc; transform: translateY(-1px); }
.review-photo-preview { min-width: 0; display: grid; grid-template-columns: 74px minmax(0, 1fr) 40px; align-items: center; gap: 12px; text-align: start; }
.review-photo-preview[hidden] { display: none; }
.review-photo-preview img { width: 74px; height: 74px; display: block; object-fit: cover; border-radius: 9px; background: #e5e7eb; }
.review-photo-preview-copy { min-width: 0; display: grid; gap: 5px; }
.review-photo-preview-copy strong { overflow: hidden; color: var(--review-text); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.review-photo-preview-copy span { color: var(--review-muted); font-size: 12px; }
.review-photo-remove { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--review-border); border-radius: 999px; background: #fff; color: #991b1b; cursor: pointer; }
.review-photo-status { min-height: 18px; margin: 0; color: var(--review-muted); font-size: 12px; font-weight: 750; }
.review-photo-status.is-error { color: #b42318; }

.review-image-lightbox[hidden] { display: none; }
.review-image-lightbox { position: fixed; inset: 0; z-index: 10050; display: grid; place-items: center; padding: clamp(18px, 3vw, 38px); }
.review-lightbox-backdrop { position: absolute; inset: 0; background: rgba(3, 7, 18, 0.88); backdrop-filter: blur(12px); animation: reviewBackdropIn 220ms ease both; }
.review-lightbox-dialog { position: relative; width: min(1040px, 92vw); height: min(84dvh, 780px); display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 20px; background: #0b1120; box-shadow: 0 34px 90px rgba(0,0,0,.52); animation: reviewViewerIn 320ms cubic-bezier(.22,1,.36,1) both; }
.review-lightbox-toolbar { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.1); color: #fff; }
.review-lightbox-toolbar > div { min-width: 0; display: grid; gap: 2px; text-align: start; }
.review-lightbox-toolbar strong { font-size: 15px; }
.review-lightbox-toolbar span { color: #aeb8ca; font-size: 12px; }
.review-lightbox-toolbar button { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
.review-lightbox-stage { position: relative; min-height: 0; display: grid; place-items: center; overflow: hidden; overscroll-behavior: contain; background: radial-gradient(circle at 50% 40%, #121a2a 0, #050914 68%); touch-action: pan-x pan-y pinch-zoom; }
.review-lightbox-stage img { position: relative; z-index: 1; width: auto !important; height: auto !important; max-width: calc(100% - 36px) !important; max-height: calc(100% - 36px) !important; display: block; object-fit: contain !important; cursor: zoom-in; filter: drop-shadow(0 18px 30px rgba(0,0,0,.36)); transition: transform 220ms ease, opacity 180ms ease; }
.review-lightbox-stage.is-zoomed { place-items: start center; overflow: auto; }
.review-lightbox-stage.is-zoomed img { width: auto !important; height: auto !important; max-width: none !important; max-height: none !important; min-width: 0; margin: 18px; cursor: zoom-out; }
.review-lightbox-loader { position: absolute; width: 36px; height: 36px; border: 3px solid rgba(255,255,255,.2); border-top-color: #fff; border-radius: 999px; animation: reviewSpin .8s linear infinite; }
.review-lightbox-stage.is-loaded .review-lightbox-loader { display: none; }
body.review-lightbox-open { overflow: hidden; }

body.dark-mode .review-photo-picker,
body.dark-mode .review-photo-remove { background: #151b27; color: #f8fafc; }
body.dark-mode .review-photo-remove { color: #fda4af; }

@keyframes reviewBackdropIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes reviewViewerIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes reviewSpin { to { transform: rotate(360deg); } }

@media (min-width: 721px) {
    #reviews.reviews-showcase .review-showcase-card.has-photo .review-card-content {
        align-content: start;
        gap: 0;
        padding: 26px 18px 24px 10px;
    }

    #reviews.reviews-showcase .review-showcase-card.has-photo .review-card-top {
        align-items: flex-start;
        margin: 0 0 20px;
        padding: 0 0 18px;
        border-bottom: 1px solid var(--review-border);
    }

    #reviews.reviews-showcase .review-showcase-card.has-photo .review-card-person {
        width: 100%;
        gap: 6px;
        text-align: start;
    }

    #reviews.reviews-showcase .review-showcase-card.has-photo .review-card-person h4 {
        font-size: 20px;
        line-height: 1.3;
    }

    #reviews.reviews-showcase .review-showcase-card.has-photo .review-date {
        font-size: 12px;
        font-weight: 780;
    }

    #reviews.reviews-showcase .review-showcase-card.has-photo .review-stars {
        justify-self: start;
        margin-top: 3px;
    }

    #reviews.reviews-showcase .review-showcase-card.has-photo .review-card-body {
        min-width: 0;
        display: grid;
        gap: 9px;
        text-align: start;
    }

    #reviews.reviews-showcase .review-showcase-card.has-photo .review-card-headline {
        margin: 0;
        font-size: 18px;
        line-height: 1.45;
    }

    #reviews.reviews-showcase .review-showcase-card.has-photo .review-quote {
        margin: 0;
        font-size: 15px;
        line-height: 1.8;
        font-style: normal;
    }

    .review-lightbox-stage img {
        max-width: min(calc(92vw - 74px), 1004px) !important;
        max-height: min(calc(84dvh - 110px), 650px) !important;
    }
}

@media (max-width: 720px) {
    #reviews.reviews-showcase {
        width: 100%;
        padding: 26px 12px calc(30px + env(safe-area-inset-bottom));
        border-radius: 0;
    }

    #reviews.reviews-showcase .reviews-header {
        margin-bottom: 20px;
    }

    #reviews.reviews-showcase .reviews-header h2 {
        font-size: clamp(25px, 7vw, 31px);
        line-height: 1.25;
    }

    #reviews.reviews-showcase .reviews-header p {
        max-width: 30ch;
        margin-inline: auto;
        font-size: 13px;
        line-height: 1.6;
    }

    #reviews.reviews-showcase .reviews-summary {
        margin-bottom: 18px;
    }

    #reviews.reviews-showcase .reviews-average {
        font-size: 42px;
        line-height: 1;
    }

    #reviews.reviews-showcase .reviews-carousel,
    #reviews.reviews-showcase .reviews-carousel:has(.review-showcase-card.has-photo) {
        width: 100%;
        max-width: none;
    }

    #reviews.reviews-showcase .review-slider-container {
        min-height: 0;
    }

    #reviews.reviews-showcase .review-showcase-card.has-photo {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 0;
        min-height: 0;
        padding: 9px;
        overflow: hidden;
        border-radius: 20px;
        box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
    }

    #reviews.reviews-showcase .review-card-photo {
        width: 100%;
        min-height: 0;
        max-height: none;
        aspect-ratio: 4 / 3;
        border: 0;
        border-radius: 16px;
        box-shadow: none;
    }

    #reviews.reviews-showcase .review-card-photo img {
        min-height: 0;
        max-height: none;
        aspect-ratio: 4 / 3;
        object-fit: contain;
    }

    #reviews.reviews-showcase .review-card-photo::after {
        inset-inline-end: 10px;
        inset-block-end: 10px;
        width: 42px;
        height: 42px;
    }

    #reviews.reviews-showcase .review-card-content {
        align-content: start;
        gap: 0;
        padding: 18px 9px 14px;
    }

    #reviews.reviews-showcase .review-showcase-card.has-photo .review-card-top {
        align-items: flex-start;
        margin: 0 0 15px;
        padding: 0 0 14px;
        border-bottom: 1px solid var(--review-border);
    }

    #reviews.reviews-showcase .review-showcase-card.has-photo .review-card-person {
        width: 100%;
        gap: 5px;
        text-align: start;
    }

    #reviews.reviews-showcase .review-showcase-card.has-photo .review-card-person h4 {
        font-size: 18px;
        line-height: 1.35;
    }

    #reviews.reviews-showcase .review-showcase-card.has-photo .review-date {
        font-size: 11px;
        font-weight: 780;
    }

    #reviews.reviews-showcase .review-showcase-card.has-photo .review-stars {
        justify-self: start;
        margin-top: 2px;
        font-size: 17px;
    }

    #reviews.reviews-showcase .review-showcase-card.has-photo .review-card-body {
        display: grid;
        gap: 7px;
        text-align: start;
    }

    #reviews.reviews-showcase .review-showcase-card.has-photo .review-card-headline {
        margin: 0;
        font-size: 17px;
        line-height: 1.45;
    }

    #reviews.reviews-showcase .review-showcase-card.has-photo .review-quote {
        margin: 0;
        font-size: 14px;
        line-height: 1.75;
        font-style: normal;
    }

    #reviews.reviews-showcase .reviews-controls {
        margin-top: 14px;
    }

    #reviews.reviews-showcase .reviews-arrow {
        width: 42px;
        height: 42px;
    }

    #reviews.reviews-showcase .review-form-toggle {
        width: 100%;
        margin-top: 16px;
        border-radius: 14px;
    }

    .review-photo-field {
        padding: 12px;
        border-radius: 14px;
    }

    .review-photo-picker {
        min-height: 52px;
        border-radius: 12px;
    }

    .review-photo-preview {
        grid-template-columns: 62px minmax(0, 1fr) 42px;
        gap: 10px;
    }

    .review-photo-preview img {
        width: 62px;
        height: 62px;
    }

    .review-image-lightbox {
        align-items: stretch;
        padding: max(7px, env(safe-area-inset-top)) 7px max(7px, env(safe-area-inset-bottom));
    }

    .review-lightbox-dialog {
        width: 100%;
        height: calc(100dvh - max(14px, env(safe-area-inset-top) + env(safe-area-inset-bottom)));
        max-height: none;
        border-radius: 20px;
    }

    .review-lightbox-toolbar {
        min-height: 64px;
        padding: 10px 12px;
    }

    .review-lightbox-toolbar strong {
        font-size: 14px;
    }

    .review-lightbox-toolbar span {
        display: block;
        max-width: 26ch;
        font-size: 10px;
        line-height: 1.35;
    }

    .review-lightbox-toolbar button {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .review-lightbox-stage {
        height: auto;
        min-height: 0;
        padding: 10px;
    }

    .review-lightbox-stage img {
        max-width: calc(100vw - 34px) !important;
        max-height: calc(100dvh - 112px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
        margin: 0;
    }

    .review-lightbox-stage.is-zoomed {
        display: block;
        overflow: auto;
        padding: 0;
    }

    .review-lightbox-stage.is-zoomed img {
        width: max(150vw, 720px) !important;
        height: auto !important;
        margin: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .review-card-photo img,
    .review-lightbox-stage img { transition: none; }
    .review-lightbox-backdrop,
    .review-lightbox-dialog { animation: none; }
}
