/* =========================================================================
   ON3 — reviews on the gallery wall (js/reviews.js)
   A review is a tile like any photo: same frame, same column flow. The four
   styles are switched with html[data-reviews="1..4"].
   Text sizes use the tile's own width (cqi), so a quote fits its tile on a
   phone's narrow column and a desktop's wide one alike.
   ========================================================================= */

.tile--review { cursor: default; container-type: inline-size; }
.rv__in { position: relative; z-index: 2; box-sizing: border-box; width: 100%; height: 100%; display: flex; flex-direction: column; }
.tile--review::after { display: none; }
@media (hover: hover) { .tile--review:hover img { transform: none; } }

.rv__fig { margin: 0; display: grid; gap: 0.9em; }
.rv__q { margin: 0; text-wrap: balance; }
.rv__q::before { content: "“"; }
.rv__q::after { content: "”"; }
.rv__by { font-family: var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.rv__by::before { content: "— "; }

/* ------------------------------------------------------------- 1 · Card
   Parchment, like a note pinned between the prints. */
.rv--1 { background: var(--parchment); color: var(--espresso); }
.rv--1 .rv__in { justify-content: space-between; padding: 9cqi 9cqi 8cqi; }
.rv__mark { font-family: var(--f-display); font-size: 22cqi; line-height: 0.8; color: var(--oxblood); }
.rv--1 .rv__q { font-family: var(--f-display); font-size: clamp(11px, 7.4cqi, 22px); line-height: 1.38; }
.rv--1 .rv__q::before, .rv--1 .rv__q::after { content: none; }
.rv--1 .rv__by { font-size: clamp(9px, 4.4cqi, 12px); color: var(--tobacco); }
.rv--1 .rv__fig { flex: 1; align-content: space-between; margin-top: 4cqi; }

/* ------------------------------------------------------------- 2 · On photo
   The quote sits on a dimmed photo from the wall, so it reads as one of the
   pictures until you stop on it. */
.rv--2 { color: var(--on-dark); background: var(--espresso-2); }
.rv--2 .rv__in { justify-content: flex-end; padding: 8cqi; }
.rv--2 .rv__img { filter: brightness(0.42) saturate(0.8); }
.rv--2::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(20, 14, 11, 0.85), rgba(20, 14, 11, 0.15) 70%); }
.rv--2 .rv__q { font-family: var(--f-display); font-size: clamp(11px, 7.2cqi, 22px); line-height: 1.38; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); }
.rv--2 .rv__by { font-size: clamp(9px, 4.2cqi, 12px); color: var(--amber-soft); }

/* ------------------------------------------------------------- 3 · Caption
   A print with the review typed underneath, like a contact sheet note. */
.rv--3 { aspect-ratio: auto; background: var(--ivory); color: var(--espresso); }
.rv--3 .rv__img { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: var(--photo, 0.8); object-fit: cover; }
.rv--3 .rv__in { height: auto; padding: 6cqi 7cqi 7cqi; }
.rv--3 .rv__fig { gap: 0.6em; }
.rv--3 .rv__q { font-family: var(--f-body); font-size: clamp(12px, 6.2cqi, 19px); line-height: 1.4; font-weight: 500; }
.rv--3 .rv__by { font-size: clamp(9px, 3.9cqi, 11px); color: var(--tobacco); }

/* ------------------------------------------------------------- 4 · Name
   Who said it, set large like a credit; the words underneath. */
.rv--4 { background: var(--oxblood); color: var(--on-dark); }
.rv--4 .rv__in { justify-content: space-between; padding: 9cqi 9cqi 8cqi; }
.rv--4 .rv__name { font-family: var(--f-display); font-size: min(var(--name, 11cqi), 34px); line-height: 1.1; letter-spacing: 0.02em; text-transform: uppercase; }
.rv--4 .rv__name::after { content: " ★"; color: var(--amber-soft); font-size: 0.6em; vertical-align: 0.35em; }
.rv--4 .rv__q { font-family: var(--f-body); font-size: clamp(12px, 6cqi, 18px); line-height: 1.45; color: rgba(243, 234, 217, 0.88); }

/* ------------------------------------------------------------- 5–8 · Floating
   No frame, no card: the review sits on the wall's own background between the
   photos, sized by its words. */
.wall-wrap--bleed .tile.rv--float { border: 0; border-radius: 0; background: transparent; aspect-ratio: auto; overflow: visible; }
.rv--float .rv__in { height: auto; padding: 9cqi 5cqi 10cqi; color: var(--on-dark); }
.rv--float .rv__q { font-family: var(--f-display); font-size: clamp(12px, 7.6cqi, 24px); line-height: 1.4; }
.rv--float .rv__by { font-size: clamp(9px, 4.2cqi, 12px); color: var(--amber-soft); }

/* 5 · Stars: five small amber stars above the words */
.rv__stars { display: flex; gap: 1.6cqi; margin-bottom: 5cqi; }
.rv__stars svg { width: clamp(10px, 6cqi, 17px); height: auto; fill: var(--amber); }

/* 6 · Glow: one large star, outlined, with a soft lamp-like glow; centred */
.rv--6 .rv__in { align-items: center; text-align: center; }
.rv__bigstar { width: 22cqi; height: auto; margin-bottom: 6cqi; fill: none; stroke: var(--amber-soft); stroke-width: 1.1; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(240, 196, 138, 0.65)) drop-shadow(0 0 18px rgba(224, 164, 88, 0.35)); }

/* 7 · Sparkle: four-point sparkles around the words, twinkling slowly */
.rv__spark { position: absolute; fill: var(--amber-soft); }
.rv__spark--a { width: 9cqi; top: 1cqi; left: 3cqi; }
.rv__spark--b { width: 5cqi; top: 6cqi; left: 15cqi; opacity: 0.7; }
.rv__spark--c { width: 7cqi; right: 6cqi; bottom: 2cqi; }
.rv__spark--d { width: 4cqi; right: 17cqi; bottom: 9cqi; opacity: 0.6; }
.rv--7 .rv__in { padding-top: 13cqi; padding-bottom: 13cqi; }
@media (prefers-reduced-motion: no-preference) {
  .rv__spark { animation: rv-twinkle 3.6s ease-in-out infinite; }
  .rv__spark--b { animation-delay: -1.1s; }
  .rv__spark--c { animation-delay: -2.2s; }
  .rv__spark--d { animation-delay: -0.6s; }
  @keyframes rv-twinkle { 0%, 100% { opacity: 0.25; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1); } }
}

/* 8 · Rule: the words, a fine line broken by a star, then the name */
.rv--8 .rv__q { font-family: var(--f-body); font-weight: 500; font-size: clamp(14px, 8cqi, 24px); line-height: 1.35; }
.rv--8 .rv__q::before, .rv--8 .rv__q::after { content: none; }
.rv__rule { display: flex; align-items: center; gap: 3cqi; margin: 1cqi 0; }
.rv__rule::before, .rv__rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(240, 196, 138, 0.6)); }
.rv__rule::after { background: linear-gradient(90deg, rgba(240, 196, 138, 0.6), transparent); }
.rv__rule svg { width: 6cqi; min-width: 10px; fill: var(--amber); }
.rv--8 .rv__by { text-align: center; }
.rv--8 .rv__by::before { content: none; }
