/* Watr: the case, version by version. watr-reel.js steps through sharp pre-rendered stills as you scroll (each one
   fades in over the last in a fixed 160 ms; none is scaled); with reduced motion the steps show as a plain list, and
   without the script the last still stands alone. */
.watr-reel {
  width: min(100%, calc(var(--project-width) + (2 * var(--project-gutter))));
  margin: 0 auto;
  padding: 24px var(--project-gutter) 72px;
}
.watr-reel .wr-intro {
  max-width: 760px;
  border-top: 1px solid var(--theme-text);
  padding-top: 18px;
}
.watr-reel .wr-intro p { margin: 0 0 12px; }
.watr-reel .wr-track { position: relative; }
.watr-reel.is-live .wr-track { height: calc(var(--wr-segs, 47) * 28vh + 100vh); }
.watr-reel .wr-stage {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(200px, 300px);
  justify-content: center;
  align-items: center;
  gap: 36px;
  padding-top: 12px;
}
.watr-reel.is-live .wr-stage { position: sticky; top: 64px; }
.watr-reel .wr-frame {
  position: relative;
  width: min(640px, calc(100vh - 150px), 60vw);
  aspect-ratio: 1;
  overflow: hidden;
  background: #c6c5c3;
}
.watr-reel .wr-frame .wr-fallback,
.watr-reel .wr-frame .wr-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}
.watr-reel.is-live .wr-fallback { display: none; }
.watr-reel .wr-still { opacity: 0; }
.watr-reel .wr-still.is-on { opacity: 1; transition: opacity 0.16s linear; }
.watr-reel .wr-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2147483000;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.82);
  color: #1d1d1f;
  font-size: 12px;
  line-height: 1.5;
}
.watr-reel .wr-label:empty { display: none; }
.watr-reel .wr-caption {
  margin: 0;
  min-height: 7.5em;
  transition: opacity 0.12s ease;
}
.watr-reel.is-switching .wr-caption { opacity: 0; }
.watr-reel .wr-when {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.watr-reel .wr-what { color: var(--theme-muted); }
.watr-reel .wr-ticks {
  display: flex;
  gap: 3px;
  margin-top: 18px;
}
.watr-reel .wr-ticks span {
  flex: 1;
  height: 3px;
  background: var(--theme-line);
}
.watr-reel .wr-ticks span.is-on { background: var(--theme-text); }
.watr-reel:not(.is-live) .wr-ticks,
.watr-reel.is-static .wr-track { display: none; }
.watr-reel .wr-list { display: none; }
.watr-reel.is-static .wr-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px 24px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.watr-reel .wr-list figure { margin: 0; }
.watr-reel .wr-list .wr-shots { display: flex; gap: 6px; margin-bottom: 8px; }
.watr-reel .wr-list .wr-shots img {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  height: auto;
}
.watr-reel .wr-list figcaption { color: var(--theme-muted); font-size: 14px; }
.watr-reel .wr-list figcaption b { color: var(--theme-text); }
@media (max-width: 820px) {
  .watr-reel .wr-stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    max-width: 460px;
    margin: 0 auto;
  }
  .watr-reel .wr-frame { width: 100%; }
  .watr-reel .wr-caption { min-height: 6.6em; font-size: 15px; }
  .watr-reel .wr-ticks { margin-top: 10px; }
  .watr-reel.is-live .wr-track { height: calc(var(--wr-segs, 47) * 32svh + 100svh); }
}
