/* Cuộn phim cưới — the reel, its rail and the bench around it.
   One ink: flag orange film base in coarse grain on true black. Photos only
   inside punched white windows. One condensed grotesk, Big Shoulders. */

@font-face {
  font-family: "Big Shoulders";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/big-shoulders-vietnamese.woff2") format("woff2");
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Big Shoulders";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/big-shoulders-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Big Shoulders";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/big-shoulders-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ground: #050505;
  --window: #0e0c0b;
  --film: #ff5a1f;
  --film-deep: #c8400c;
  --paper: #f4efe9;
  --paper-dim: #c7bab0;
  --ink: #050505;
  --face: "Big Shoulders", "Arial Narrow", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* phone: the rail is a vertical strip */
  --band: 34px;
  --perf: 28px;
  --gap: 14px;
  --pad: 20px;
  --grain-dark: url("../img/grain-dark.svg");
  --grain-light: url("../img/grain-light.svg");

  color-scheme: dark;
  accent-color: var(--film);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--film-deep) var(--ground);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    var(--grain-light) 0 0 / 200px 200px,
    var(--ground);
  color: var(--paper);
  font-family: var(--face);
  font-optical-sizing: auto;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.5;
  caret-color: var(--film);
}

::selection {
  background: var(--film);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--paper);
  outline-offset: 3px;
}

h1,
h2,
h3,
p,
ol,
figure,
fieldset {
  margin: 0;
  padding: 0;
}

ol {
  list-style: none;
}

fieldset {
  border: 0;
  min-width: 0;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.defs {
  position: absolute;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.icon {
  width: 22px;
  height: 22px;
  flex: none;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  --btn-window: var(--window);

  min-height: 52px;
  min-width: 52px;
  padding: 10px 20px;
  border: 0;
  border-radius: 0;
  font: 700 0.9375rem / 1.1 var(--face);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease-out),
    color 0.2s var(--ease-out);
}

/* Every control is cut from the same stock: a chip of film with a row of
   punched perforations along its top and bottom edge. */
.btn--solid {
  padding-block: 14px;
  background:
    url("../img/perf-button.svg") center top / 14px 10px repeat-x,
    url("../img/perf-button.svg") center bottom / 14px 10px repeat-x,
    var(--grain-dark) 0 0 / 180px 180px,
    var(--film);
  color: var(--ink);
}

.btn--solid:hover {
  background-color: var(--paper);
  background-image:
    url("../img/perf-button.svg"), url("../img/perf-button.svg");
}

.btn--line,
.btn--icon {
  padding-block: 14px;
  background:
    url("../img/perf-button.svg") center top / 14px 10px repeat-x,
    url("../img/perf-button.svg") center bottom / 14px 10px repeat-x,
    linear-gradient(var(--btn-window), var(--btn-window)) 6px 10px /
    calc(100% - 12px) calc(100% - 20px) no-repeat,
    var(--grain-dark) 0 0 / 180px 180px,
    var(--film);
  color: var(--paper);
}

.btn--line:hover,
.btn--icon:hover {
  --btn-window: var(--film);

  color: var(--ink);
}

.btn--line {
  padding-inline: 24px;
}

.btn--icon {
  width: 56px;
  padding: 14px 0;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: default;
  opacity: 0.4;
}

.btn--solid[aria-busy="true"] {
  cursor: progress;
  background: var(--film-deep);
}

/* ---------- tape ---------- */
.tape {
  display: inline-block;
  padding: 3px 12px 2px;
  background: var(--film);
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* torn ends come from authored edge masks, the middle stays solid */
.tape,
.seal-tape {
  --tear: 8px;

  -webkit-mask:
    url("../img/tape-edge-left.svg") left top / var(--tear) 100% no-repeat,
    linear-gradient(#000, #000) center / calc(100% - 2 * var(--tear) + 2px) 100%
    no-repeat,
    url("../img/tape-edge-right.svg") right top / var(--tear) 100% no-repeat;
  mask:
    url("../img/tape-edge-left.svg") left top / var(--tear) 100% no-repeat,
    linear-gradient(#000, #000) center / calc(100% - 2 * var(--tear) + 2px) 100%
    no-repeat,
    url("../img/tape-edge-right.svg") right top / var(--tear) 100% no-repeat;
}

/* ---------- the reel: phone strip first ---------- */
.reel {
  display: block;
  outline: none;
}

.track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  max-width: 560px;
  margin: 0 auto;
  padding: var(--gap) var(--band) calc(var(--gap) + 84px);
  background:
    url("../img/perf-left.svg") left top / var(--band) var(--perf) repeat-y,
    url("../img/perf-right.svg") right top / var(--band) var(--perf) repeat-y,
    var(--grain-dark) 0 0 / 180px 180px,
    var(--film);
  counter-reset: frame;
}

/* the reel is cut at both ends, like a strip off the splicer (drawn with
   pseudo-elements: a clip-path here would also clip the fixed slate) */
.track::before,
.track::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: 0;
  left: 0;
  height: 12px;
  background: var(--ground);
  pointer-events: none;
}

.track::before {
  top: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.track::after {
  bottom: 0;
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.chapter {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.frame {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--window);
  box-shadow:
    inset 0 0 0 1px rgb(0 0 0 / 0.6),
    inset 0 6px 18px rgb(0 0 0 / 0.7);
  counter-increment: frame;
}

.window-area {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
  padding: var(--pad);
}

/* Edge print: frame numbers on the outer margin of one band, the facts of
   the chapter on the other. Black on the orange base. */
.edge {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 16px;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 16px;
  text-transform: uppercase;
  white-space: nowrap;
  writing-mode: vertical-rl;
}

.edge-top {
  left: calc(-1 * var(--band));
  transform: rotate(180deg);
  justify-content: flex-end;
}

.edge-top::after {
  content: counter(frame, decimal-leading-zero);
  font-size: 0.8125rem;
}

.edge-bottom {
  right: calc(-1 * var(--band));
}

.edge-fact + .edge-fact::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-block-end: 14px;
  background: var(--ink);
  vertical-align: middle;
}

.edge-word {
  padding: 0 4px;
  border: 1.5px solid var(--ink);
  font-size: 0.75rem;
}

/* ---------- the slate (phone: under the hero photo) ---------- */
.slate {
  display: grid;
  gap: 14px;
}

.slate-code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  color: var(--paper);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.slate-code .tape {
  font-size: 0.9375rem;
}

.fact + .fact::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-inline-end: 12px;
  background: var(--film);
  vertical-align: 0.2em;
}

.timecode {
  display: grid;
  gap: 4px;
}

.timecode-label {
  color: var(--paper-dim);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timecode-digits {
  display: flex;
  align-items: flex-start;
  color: var(--film);
  font-size: 2.75rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1;
}

.tc {
  display: grid;
  justify-items: start;
  gap: 6px;
}

.tc b {
  font-weight: 700;
}

.d {
  display: inline-block;
  width: 0.5em;
  text-align: center;
}

.tc small {
  color: var(--paper-dim);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tc-sep {
  padding: 0 4px;
  color: var(--paper-dim);
  font-weight: 400;
}

.slate-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cue {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--paper-dim);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.slate-nav {
  flex-wrap: wrap;
}

.slate-nav .cue,
.slate-nav .flag--docked {
  white-space: nowrap;
}

.slate-nav .flag--docked {
  order: -1;
  margin-inline-start: auto;
}

/* the flag gets its own row on a phone, ahead of the scroll cue */
.slate-nav .cue {
  flex-basis: 100%;
}

.cue-icon {
  width: 18px;
  height: 18px;
  color: var(--film);
}

.footage,
#rail-prev,
#rail-next {
  display: none;
}

/* ---------- the RSVP flag ---------- */
.flag {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: max(18px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 22px 0 30px;
  background:
    var(--grain-dark) 0 0 / 180px 180px,
    var(--film);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%);
  filter: drop-shadow(0 8px 14px rgb(0 0 0 / 0.55));
  transition:
    transform 0.4s var(--ease-out),
    opacity 0.3s var(--ease-out);
}

.flag::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 14px;
  background: linear-gradient(225deg, var(--ground) 50%, var(--film-deep) 50%);
}

.flag:hover {
  background: var(--paper);
}

.flag.is-away {
  opacity: 0;
  pointer-events: none;
  transform: translateX(40%);
}

/* on a phone the flag rides in the slate while the slate is on screen, so the
   floating one never lands on the countdown, however long the names run */
.flag--docked {
  position: relative;
  z-index: auto;
  right: auto;
  bottom: auto;
  margin-inline-end: calc(-1 * var(--pad));
  filter: none;
}

.ruler {
  display: none;
}

.music {
  position: fixed;
  z-index: 20;
  top: 12px;
  right: 12px;
}

.music[aria-pressed="true"] {
  border-color: var(--film);
  color: var(--film);
}

/* ---------- the head leader ---------- */
.leader {
  display: none;
}

/* The leader is painted from the very first frame (body.locked is in the
   static markup); configure.js unlocks for the builder and reduced motion,
   bridge.js unlocks if main.js fails to load. */
body.locked {
  overflow: hidden;
}

/* Until the payload arrives the leader's words wait (they may be in another
   language); after 4s they show anyway so a page without a payload is never
   stuck behind a blank leader. */
body.locked:not(.is-configured) .leader-print,
body.locked:not(.is-configured) .leader-start {
  visibility: hidden;
  animation: leader-failsafe 0s 4s forwards;
}

@keyframes leader-failsafe {
  to {
    visibility: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.locked {
    overflow: visible;
  }

  body.locked .leader {
    display: none;
  }
}

body.locked .leader {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 32px;
  padding: 24px 16px;
  background:
    var(--grain-light) 0 0 / 200px 200px,
    var(--ground);
}

.leader-band {
  display: grid;
  width: min(100%, 560px);
  padding: 0 0;
  background:
    url("../img/perf-top.svg") 0 top / 30px 44px repeat-x,
    url("../img/perf-bottom.svg") 0 bottom / 30px 44px repeat-x,
    var(--grain-dark) 0 0 / 180px 180px,
    var(--film);
}

.leader-print {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.leader-print--top {
  align-items: flex-start;
  padding-top: 3px;
}

.leader-print--bottom {
  align-items: flex-end;
  padding-bottom: 3px;
}

.leader-print-date {
  margin-inline-start: auto;
}

.leader-window {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  margin: 18px 14px;
  overflow: hidden;
  background: var(--window);
}

.leader-clock {
  position: absolute;
  width: 78%;
  height: 78%;
  fill: none;
  stroke: rgb(244 239 233 / 0.55);
  stroke-width: 1.5;
}

.leader-sweep {
  --sweep: 0deg;

  position: absolute;
  width: 61%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(
    rgb(255 90 31 / 0.45) var(--sweep),
    transparent var(--sweep)
  );
}

.leader-digit {
  position: relative;
  color: var(--film);
  font-size: 7rem;
  font-weight: 800;
  line-height: 1;
}

.leader.is-running .leader-start {
  display: none;
}

.leader.is-out {
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}

.leader.is-out .leader-band {
  transform: translateX(-30%);
  transition: transform 0.6s cubic-bezier(0.7, 0, 0.84, 0);
}

.leader-start {
  max-width: min(100%, 560px);
  min-height: 56px;
  font-size: 1rem;
  line-height: 1.25;
  padding: 10px 24px;
  text-align: center;
}

/* ---------- the loupe ---------- */
.loupe {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 72px 12px 96px;
  background:
    var(--grain-light) 0 0 / 200px 200px,
    rgb(5 5 5 / 0.97);
}

.loupe-frame {
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 100%;
  max-height: 100%;
}

.loupe-mount {
  display: block;
  max-width: min(100%, 1100px);
  padding: 10px;
  background: var(--paper);
  box-shadow: 0 24px 48px -12px rgb(0 0 0 / 0.9);
}

.loupe-mount img {
  max-width: 100%;
  max-height: calc(100vh - 220px);
  object-fit: contain;
  background: var(--window);
}

.loupe-caption {
  color: var(--paper);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.loupe-close {
  position: fixed;
  top: 14px;
  right: 14px;
}

.loupe-prev,
.loupe-next {
  position: fixed;
  bottom: 20px;
}

.loupe-prev {
  left: calc(50% - 64px);
}

.loupe-next {
  right: calc(50% - 64px);
}

/* ---------- desktop: the rail crosses the screen horizontally ---------- */
@media (min-width: 900px) and (min-height: 680px) {
  :root {
    --band: 64px;
    --gap: 24px;
    --pad: 28px;
    --rail-h: clamp(520px, calc(100vh - 230px), 700px);
    --frame-h: calc(var(--rail-h) - 2 * var(--band));
    --cell: max(344px, calc(var(--frame-h) * 0.8));
    --pitch: calc(var(--cell) + var(--gap));
    --perf: calc(var(--pitch) / 8);
    --lead: max(24px, calc(50vw - var(--cell) / 2 - var(--pitch)));
    --tail: max(24px, calc(50vw - var(--cell) / 2));
    --rail-top: clamp(
      64px,
      calc((100vh - var(--rail-h) - 150px) * 0.45),
      104px
    );
  }

  @supports (width: round(down, 101px, 8px)) {
    :root {
      --cell: round(down, max(344px, calc(var(--frame-h) * 0.8)), 8px);
    }
  }

  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .reel {
    position: fixed;
    top: var(--rail-top);
    right: 0;
    left: 0;
    height: var(--rail-h);
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior: contain;
    scrollbar-width: none;
    cursor: grab;
  }

  .reel::-webkit-scrollbar {
    display: none;
  }

  .reel.is-dragging {
    cursor: grabbing;
    user-select: none;
  }

  .track {
    flex-direction: row;
    width: max-content;
    max-width: none;
    height: 100%;
    margin: 0;
    padding: var(--band) var(--tail) var(--band) var(--lead);
    background:
      url("../img/perf-top.svg") var(--lead) top / var(--perf) var(--band)
      repeat-x,
      url("../img/perf-bottom.svg") var(--lead) bottom / var(--perf) var(--band)
      repeat-x,
      var(--grain-dark) 0 0 / 180px 180px,
      var(--film);
  }

  .track::before,
  .track::after {
    top: 0;
    bottom: 0;
    width: 16px;
    height: auto;
  }

  .track::before {
    right: auto;
    left: 0;
    clip-path: polygon(0 0, 100% 0, 0 100%);
  }

  .track::after {
    right: 0;
    left: auto;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
  }

  .chapter {
    flex-direction: row;
    height: 100%;
  }

  .frame {
    --cells: 1;

    flex: none;
    width: calc(var(--cells) * var(--cell) + (var(--cells) - 1) * var(--gap));
    height: 100%;
  }

  .edge {
    top: auto;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: 26px;
    padding: 0 4px;
    font-size: 0.8125rem;
    line-height: 26px;
    writing-mode: horizontal-tb;
  }

  .edge-top {
    top: calc(-1 * var(--band));
    transform: none;
    flex-direction: row-reverse;
  }

  /* on desktop the ruler above carries the frame numbers */
  .edge-top::after {
    content: none;
  }

  .edge-bottom {
    bottom: calc(-1 * var(--band));
  }

  .edge-fact + .edge-fact::before {
    margin-block-end: 0;
    margin-inline-end: 14px;
  }

  /* the slate sits on the bench under the rail, always in view */
  .slate {
    position: fixed;
    top: calc(var(--rail-top) + var(--rail-h) + 22px);
    right: 32px;
    left: 32px;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 14px 40px;
  }

  .slate-code {
    grid-column: 1 / -1;
    font-size: 1rem;
  }

  .timecode {
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: start;
    gap: 22px;
  }

  .timecode-label {
    max-width: 11.5rem;
    line-height: 1.35;
  }

  .timecode-digits {
    font-size: 3rem;
  }

  .slate-nav {
    flex-wrap: nowrap;
    gap: 12px;
  }

  .slate-nav .cue {
    flex-basis: auto;
  }

  .footage {
    display: block;
    min-width: 7.5rem;
    color: var(--paper-dim);
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-align: right;
    text-transform: uppercase;
  }

  .footage b {
    color: var(--paper);
  }

  #rail-prev,
  #rail-next {
    display: inline-flex;
  }

  .cue-icon {
    transform: rotate(-90deg);
  }

  .flag {
    top: calc(var(--rail-top) - 54px);
    right: 48px;
    bottom: auto;
    padding: 0 30px 0 22px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%);
  }

  .flag::after {
    top: auto;
    right: auto;
    bottom: -14px;
    left: 0;
    background: linear-gradient(45deg, transparent 50%, var(--film-deep) 50%);
  }

  .flag.is-away {
    transform: translateY(-30%);
  }

  .flag--docked {
    display: none;
  }

  /* the timecode ruler over the rail: a tick per perforation, a longer tick
     and the frame number at each frame, the playhead over the centre frame */
  .ruler {
    position: fixed;
    z-index: 5;
    top: calc(var(--rail-top) - 30px);
    right: 0;
    left: 0;
    display: block;
    height: 30px;
    overflow: hidden;
    pointer-events: none;
  }

  .ruler-track {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    background:
      linear-gradient(to right, var(--paper) 2px, transparent 2px) var(--lead)
      100% / var(--pitch) 16px repeat-x,
      linear-gradient(to right, rgb(244 239 233 / 0.6) 1px, transparent 1px)
      var(--lead) 100% / var(--perf) 8px repeat-x;
    will-change: transform;
  }

  .ruler-num {
    position: absolute;
    top: 1px;
    padding-left: 5px;
    color: var(--paper-dim);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
  }

  .ruler-num.is-now {
    color: var(--film);
  }

  .playhead {
    position: absolute;
    bottom: 0;
    left: calc(50% - 9px);
    width: 18px;
    height: 13px;
    background: var(--film);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
  }

  .music {
    top: calc(var(--rail-top) - 58px);
    right: auto;
    left: 32px;
  }

  .leader-band {
    width: min(100%, 720px);
    background-size:
      40px 52px,
      40px 52px,
      180px 180px,
      auto;
  }

  .leader-print {
    min-height: 52px;
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

.loupe-caption::before {
  content: var(--frame-word, "Khung ");
}

.loupe-mount.is-failed img {
  width: min(80vw, 640px);
  height: 50vh;
  background:
    radial-gradient(90% 70% at 0% 100%, rgb(255 90 31 / 0.32), transparent 60%),
    linear-gradient(160deg, #1d1916, #0b0a09);
}
