/* Reviews carousel + motion helpers. Linked by js/reviews.js and js/motion.js. */

/* reviews: every card is the same 4:5 frame, screenshot contained whole */
.rv { position: relative; }
.rv__track { display: flex; gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) 4px calc(var(--rule-x) + var(--gap)); scroll-padding-left: calc(var(--rule-x) + var(--gap));
  scrollbar-width: none; cursor: grab; }
.rv__track::-webkit-scrollbar { display: none; }
.rv__track.is-drag { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.rv__track:focus-visible { outline-offset: -2px; }
/* glass plate: same tint, rim and highlight as the folder facade (.gf-front in home.css) */
.rv__track { padding-top: 14px; padding-bottom: 34px; }
.rv__card { position: relative; flex: 0 0 clamp(220px, 22vw, 340px); aspect-ratio: 4 / 5; margin: 0; padding: clamp(10px, 1.2vw, 18px); border: 0; border-radius: 18px;
  background: radial-gradient(70% 45% at 22% 30%, rgba(236, 196, 180, .32), rgba(236, 196, 180, 0) 70%),
    radial-gradient(60% 40% at 82% 62%, rgba(186, 196, 226, .3), rgba(186, 196, 226, 0) 70%),
    linear-gradient(180deg, rgba(196, 196, 200, .7) 0%, rgba(222, 222, 225, .78) 45%, rgba(246, 246, 247, .95) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: inset 0 0 0 1.2px rgba(255, 255, 255, .85), inset 0 1px 0 rgba(255, 255, 255, .95), 0 0 0 .5px rgba(0, 0, 0, .08), 0 18px 30px -16px rgba(16, 18, 24, .34);
  scroll-snap-align: start; cursor: zoom-in; -webkit-tap-highlight-color: transparent; transition: transform .6s cubic-bezier(.2, .8, .2, 1), box-shadow .6s cubic-bezier(.2, .8, .2, 1); }
.rv__card img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; pointer-events: none; -webkit-user-drag: none; }
@media (hover: hover) { .rv__card:hover { transform: translateY(-6px);
  box-shadow: inset 0 0 0 1.2px rgba(255, 255, 255, .85), inset 0 1px 0 rgba(255, 255, 255, .95), 0 0 0 .5px rgba(0, 0, 0, .08), 0 26px 40px -18px rgba(16, 18, 24, .42); } }
.rv__bar { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding: 0 var(--gutter) 0 calc(var(--rule-x) + var(--gap)); }
.rv__count { min-width: 7ch; font-size: 16px; font-variant-numeric: tabular-nums; color: var(--muted); }
.rv__btn { cursor: pointer; font-size: 20px; line-height: 1; }
.rv__btn:disabled { opacity: 0.35; cursor: default; }
@media (max-width: 700px) {
  .rv__track { padding-left: var(--gutter); scroll-padding-left: var(--gutter); }
  .rv__card { flex-basis: 72vw; }
  .rv__bar { padding-left: var(--gutter); }
}

/* minimal lightbox (used only when album-modal.js is absent) */
.rv-box { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 56px 16px 16px; margin: 0; width: 100%; height: 100%;
  max-width: none; max-height: none; border: 0; background: rgb(11 11 11 / 0.94); }
.rv-box::backdrop { background: transparent; }
.rv-box img { max-width: 100%; max-height: calc(100vh - 80px); width: auto; height: auto; object-fit: contain; }
.rv-box__close { position: absolute; top: 12px; right: 12px; }

/* motion: only active once GSAP loaded (html.has-motion); default = end state */
.ledger__row { --draw: 1; }
html.has-motion .ledger__row { position: relative; border-bottom-color: transparent; }
html.has-motion .ledger__row::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--hair);
  transform: scaleX(var(--draw)); transform-origin: 0 50%; }
/* sideways entrances must not widen the page */
html.has-motion main { overflow-x: clip; }
