/* Testimonials that drift (Ethan, 2026-11-03: "the testimonials need to be more like this", a two-row marquee of small
   cards). A site opts in with data-marquee on the box that holds its review cards (figure > stars? + blockquote +
   figcaption "Name · where"), and loads this file and /marquee.js after its own.
   - Two rows drifting in opposite directions, slowly. Only the row under the pointer (or holding a focused card) eases
     to a stop, decelerating smoothly, and eases back when you leave; the other row keeps drifting (Ethan, 2026-11-03:
     "when I hover over the testimonials all lines stop moving, doesn't look good… hovering over one line and it slows
     down in a smooth deceleration"). marquee.js does the easing. Off screen, nothing runs. The edges fade out (a mask,
     so it works on any background).
   - Each card: glass, a round initial, the name with where it's from beneath, the stars, three lines of the quote.
     A guest's own photo, when the review has one, is the round picture instead of the initial (40px).
     Light glass on a light band; smoke glass on a dark band (marquee.js reads the band).
   - Reduce motion: nothing moves; the cards sit still in a wrapped grid (no sideways scroll). */
.marquee { --mq-gap: 14px; position: relative; display: grid; gap: var(--mq-gap); overflow: hidden; padding-block: 6px 22px;
  margin-inline: calc(-1 * var(--gutter, 20px));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
/* the box was the site's own wall (columns, a grid, a flex row): none of that applies once it drifts */
[data-marquee].marquee { columns: auto; grid-template-columns: none; grid-template-rows: none; grid-auto-flow: row; grid-auto-columns: auto;
  flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: normal; max-height: none; }
.marquee__row { display: flex; gap: var(--mq-gap); width: max-content; padding-inline: var(--mq-gap); animation: mq var(--mq-dur, 60s) linear infinite; }
/* every card shows: the old wall's "phones: the first six" rules (.wall .review:nth-child(n + 7) { display: none }) would
   otherwise hide most of each row and its repeats */
[data-marquee].marquee > .marquee__row > .mq-card { display: grid; }
.marquee__row--rev { animation-direction: reverse; }
@keyframes mq { to { transform: translateX(var(--mq-shift, -50%)); } }

.marquee .mq-card { flex: none; width: var(--mq-w, 19rem); margin: 0; display: grid; align-content: start; gap: 10px; padding: 16px 18px 18px;
  border-radius: var(--r, 14px); color: inherit; translate: none; opacity: 1;
  background: linear-gradient(135deg, rgb(255 255 255 / 0.72), rgb(255 255 255 / 0.36) 45%, rgb(255 255 255 / 0.56));
  backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.95), inset 0 0 0 1px rgb(255 255 255 / 0.55), 0 0 0 1px rgb(0 0 0 / 0.06), 0 14px 30px -22px rgb(0 0 0 / 0.38); }
.marquee--dark .mq-card { color: #f6f2ee;
  background: linear-gradient(135deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0.04) 45%, rgb(255 255 255 / 0.09));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), inset 0 0 0 1px rgb(255 255 255 / 0.13), 0 18px 40px -26px rgb(0 0 0 / 0.7); }
/* a photo card: the photo runs edge to edge under the card's own corners (one radius, as the glossy cards do) */
.marquee .mq-card--photo { padding: 0 0 14px; gap: 10px; overflow: hidden; }
.mq-card--photo > img, .mq-card--photo > picture img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; }
.mq-card--photo figcaption { padding-inline: 16px; }
.mq-card figcaption { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 0.9rem; line-height: 1.25; color: inherit; }
.mq-card figcaption b { display: block; font-weight: 600; }
.mq-card figcaption small { display: block; font-size: 0.8rem; opacity: 0.72; }
.mq-avatar { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; font: 600 0.9rem/1 inherit; color: #fff;
  background: linear-gradient(135deg, var(--mq-a, var(--accent, #8a4741)), color-mix(in srgb, var(--mq-a, var(--accent, #8a4741)) 55%, #fff)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35); }
img.mq-avatar { width: 40px; height: 40px; object-fit: cover; background: none; padding: 0; }
.mq-card blockquote { margin: 0; font-size: 0.98rem; line-height: 1.5; color: inherit;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--mq-lines, 3); overflow: hidden; }
.mq-card .stars { margin: 0; }
/* the stars keep their own size; a site rule written for the old wall (.wall > figure .stars svg) no longer reaches into
   the rows, so an icon left unsized gets 1em (zero specificity: any rule of the site's that still applies wins) */
.marquee .mq-card [aria-label*="out of 5" i] { justify-self: start; }
:where(.marquee .mq-card [aria-label*="out of 5" i]) { display: flex; gap: 3px; color: var(--accent, currentColor); }
:where(.marquee .mq-card [aria-label*="out of 5" i]) svg { display: block; width: 1em; height: 1em; flex: none; fill: currentColor; }

/* reduce motion: nothing moves and nothing scrolls sideways; the two rows fold into one still wall of the same cards,
   wrapped to the width (marquee.js makes no copies then, so each review shows once) */
@media (prefers-reduced-motion: reduce) {
  [data-marquee].marquee, .marquee { grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); align-items: stretch;
    margin-inline: 0; padding-block: 6px; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .marquee__row { display: contents; animation: none; }
  .marquee .mq-card { width: auto; min-width: 0; }
}
@media (max-width: 640px) { .marquee .mq-card { --mq-w: 16.5rem; } }
