/* Home, "What our guests say": the review cards glide sideways on their own,
   and pause when you point at them. The cards are duplicated so the loop never
   shows a gap; the copies are hidden from screen readers. */
.reviews-marquee { overflow: hidden; }
.reviews-track { display: flex; width: max-content; padding-block: 2px; animation: reviews-scroll 60s linear infinite; }
.reviews-track > article { margin-inline-end: 20px; }
.reviews-marquee:hover .reviews-track,
.reviews-marquee:focus-within .reviews-track { animation-play-state: paused; }
@keyframes reviews-scroll { to { transform: translateX(-50%); } }
[dir="rtl"] .reviews-track { animation-name: reviews-scroll-rtl; }
@keyframes reviews-scroll-rtl { to { transform: translateX(50%); } }

/* Soft fade at the two edges on wider screens. */
@media (min-width: 700px) {
  .reviews-marquee { -webkit-mask-image: linear-gradient(to right, transparent, #000 72px, #000 calc(100% - 72px), transparent); mask-image: linear-gradient(to right, transparent, #000 72px, #000 calc(100% - 72px), transparent); }
}

/* If the visitor prefers less motion: stop the glide and let them swipe instead,
   showing each review once. */
@media (prefers-reduced-motion: reduce) {
  .reviews-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .reviews-track { animation: none; padding-inline: 16px; }
  .reviews-track > article[aria-hidden="true"] { display: none; }
}
