:root {
  --bg: #0e0c0b;
  --ink: #ede6da;
  --ink-dim: #a39a8c;
  --ink-faint: #6b645a;
  --brass: #c9a56a;
  --line: rgba(237, 230, 218, 0.14);
  --accent: #c4532d;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); height: 100%; overflow: hidden; overscroll-behavior: none; }
body {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
::selection { background: var(--brass); color: var(--bg); }

#scene { position: fixed; inset: 0; width: 100% !important; height: 100% !important; display: block; z-index: 0; touch-action: none; }
#track { position: relative; z-index: -1; pointer-events: none; }

.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); } 60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0,0,0,.55) 100%);
}

/* loader: minimal — name, caption, a thin line that fills */
.loader { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: var(--bg); transition: opacity .9s var(--ease) .1s; }
.loader-glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(201,165,106,.10), transparent 65%); animation: glow 3s ease-in-out infinite; }
@keyframes glow { 50% { transform: scale(1.08); opacity: .7; } }
.loader-center { position: relative; text-align: center; transition: transform 1s var(--ease), opacity .8s var(--ease); }
.loader-name { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.01em; opacity: 0; transform: translateY(10px); animation: rise .9s var(--ease) .15s forwards; }
.loader-step { margin-top: 10px; color: var(--ink-faint); letter-spacing: .32em; font-size: 10px; opacity: 0; animation: rise .9s var(--ease) .35s forwards; }
.loader-line { width: 180px; height: 1px; margin: 22px auto 0; background: rgba(237,230,218,.12); overflow: hidden; }
.loader-line i { display: block; height: 100%; width: 100%; background: var(--brass); transform-origin: left; transform: scaleX(0); }
.loader-pct { display: block; margin-top: 12px; color: var(--ink-faint); font-size: 10px; }
@keyframes rise { to { opacity: 1; transform: none; } }
.loader.done { opacity: 0; pointer-events: none; }
.loader.done .loader-center { transform: translateY(-14px); opacity: 0; }
.loader.gone { visibility: hidden; }

/* top bar */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px clamp(18px, 3vw, 40px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 1px solid var(--brass); color: var(--brass);
  font-family: var(--serif); font-style: italic; font-size: 17px;
}
.brand-name { font-family: var(--serif); font-size: 17px; letter-spacing: .01em; }
.topnav { display: flex; gap: 6px; }
.topnav button {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(14, 12, 11, .35); backdrop-filter: blur(8px);
  transition: border-color .3s, color .3s, background .3s;
}
.topnav button:hover { border-color: var(--brass); color: var(--brass); }
.topnav button span { color: var(--ink-faint); margin-left: 4px; }

/* intro */
.intro, .outro {
  position: fixed; z-index: 5; pointer-events: none;
  left: clamp(18px, 6vw, 96px); bottom: clamp(200px, 26vh, 260px);
  max-width: 760px;
}
.intro > *, .outro > * { pointer-events: auto; }
.kicker { color: var(--brass); margin-bottom: 22px; }
.intro h1, .outro h2 {
  font-family: var(--serif); font-weight: 300; letter-spacing: -.02em;
  font-size: clamp(42px, 6.6vw, 104px); line-height: .98;
  font-variation-settings: "opsz" 144;
}
.intro h1 em, .outro h2 em { font-style: italic; color: var(--brass); font-weight: 300; }
.intro-sub, .outro-sub { margin-top: 26px; max-width: 440px; color: var(--ink-dim); font-size: 16px; }
.scroll-cue { margin-top: 44px; display: flex; align-items: center; gap: 14px; color: var(--ink-dim); }
.scroll-cue i { width: 64px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue i::after {
  content: ""; position: absolute; inset: 0; width: 40%; background: var(--brass);
  animation: cue 2s var(--ease) infinite;
}
@keyframes cue { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

.intro .kicker, .intro h1, .intro-sub, .scroll-cue,
.outro > * { transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.intro.off > *, .outro.off > * { opacity: 0; transform: translateY(24px); pointer-events: none; }
.intro h1 { transition-delay: .05s; } .intro-sub { transition-delay: .1s; } .scroll-cue { transition-delay: .15s; }
.outro h2 { transition-delay: .06s; } .outro-sub { transition-delay: .12s; }
.outro-links, .restart { transition-delay: .18s !important; }
.outro-links { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.restart { margin-top: 28px; color: var(--ink-dim); }
.restart:hover { color: var(--brass); }

/* buttons used in panel + outro */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; transition: background .3s, color .3s, border-color .3s;
}
.btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.solid { background: var(--brass); border-color: var(--brass); color: var(--bg); }
.btn.solid:hover { background: var(--ink); border-color: var(--ink); }

/* exhibit panel */
.panel {
  position: fixed; z-index: 6;
  right: clamp(18px, 4vw, 64px); top: 50%;
  width: min(420px, 36vw);
  transform: translateY(-50%);
  pointer-events: none;
}
.panel > * {
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s var(--ease), transform .7s var(--ease);
}
.panel.show { pointer-events: auto; }
.panel.show > * { opacity: 1; transform: none; }
.panel.show > :nth-child(2) { transition-delay: .05s; }
.panel.show > :nth-child(3) { transition-delay: .1s; }
.panel.show > :nth-child(4) { transition-delay: .15s; }
.panel.show > :nth-child(5) { transition-delay: .2s; }
.panel.show > :nth-child(6) { transition-delay: .25s; }
.panel.show > :nth-child(7) { transition-delay: .3s; }
.panel.show > :nth-child(8) { transition-delay: .35s; }

.panel-head {
  display: flex; justify-content: space-between;
  padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 26px;
}
.panel-no { color: var(--accent); transition: color .6s; }
.panel-year { color: var(--ink-faint); }
.panel-title {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.02em;
  font-size: clamp(38px, 4.2vw, 62px); line-height: 1;
  font-variation-settings: "opsz" 144;
}
.panel-kind { font-family: var(--serif); font-style: italic; color: var(--ink-dim); font-size: 19px; margin-top: 10px; }
.panel-summary { margin-top: 22px; color: var(--ink); font-size: 15.5px; }
.panel-points { list-style: none; margin-top: 20px; border-top: 1px solid var(--line); }
.panel-points li {
  font-size: 14px; color: var(--ink-dim); padding: 10px 0 10px 26px;
  border-bottom: 1px solid var(--line); position: relative;
}
.panel-points li::before {
  content: counter(list-item, decimal-leading-zero); position: absolute; left: 0; top: 12px;
  font-family: var(--mono); font-size: 10px; color: var(--ink-faint);
}
.panel-stack { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.panel-stack span {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em;
  padding: 5px 9px; border: 1px solid var(--line); border-radius: 3px; color: var(--ink-dim);
}
.panel-links { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.panel-links:empty { display: none; }
.panel-hint { margin-top: 22px; color: var(--ink-faint); }

/* the panel sits on a soft dark wash so it reads over the 3D scene */
.panel::before {
  content: ""; position: absolute; z-index: -1; inset: -60px -80px -60px -60px;
  background: radial-gradient(closest-side, rgba(14,12,11,.82), rgba(14,12,11,0));
  opacity: 0; transition: opacity .6s;
}
.panel.show::before { opacity: 1; }

/* floor plan */
.plan { left: clamp(18px, 3vw, 40px);
  position: fixed; z-index: 8; bottom: clamp(18px, 3vw, 34px);
  width: 160px;
}
.plan svg { width: 160px; height: 120px; display: block; overflow: visible; }
.plan-label { display: block; margin-top: 8px; color: var(--ink-dim); white-space: nowrap; }
.plan .route { fill: none; stroke: var(--line); stroke-width: 1; }
.plan .route-done { fill: none; stroke: var(--brass); stroke-width: 1.4; }
.plan .stop { fill: var(--bg); stroke: var(--ink-faint); stroke-width: 1; cursor: pointer; transition: stroke .3s, fill .3s; }
.plan .stop:hover, .plan .stop.on { stroke: var(--brass); fill: var(--brass); }
.plan .me { fill: var(--ink); }
.plan .me-ring { fill: none; stroke: var(--ink); stroke-opacity: .4; }

.keys { position: fixed; z-index: 8; right: clamp(18px, 3vw, 40px); bottom: clamp(18px, 3vw, 34px); color: var(--ink-faint); }

/* index overlay */
.index {
  position: fixed; inset: 0; z-index: 40; background: rgba(14, 12, 11, .94); backdrop-filter: blur(10px);
  overflow-y: auto; opacity: 0; transition: opacity .5s var(--ease);
}
.index.open { opacity: 1; }
.index-inner { max-width: 1100px; margin: 0 auto; padding: 28px clamp(18px, 4vw, 48px) 80px; }
.index-head { display: flex; justify-content: space-between; align-items: center; color: var(--brass); margin-bottom: 6vh; }
.index-head button { color: var(--ink-dim); }
.index-head button:hover { color: var(--ink); }
.index-list { list-style: none; }
.index-list li { border-top: 1px solid var(--line); }
.index-list li:last-child { border-bottom: 1px solid var(--line); }
.index-list button {
  width: 100%; display: grid; grid-template-columns: 60px 1fr auto; gap: 20px; align-items: baseline;
  padding: 22px 0; text-align: left;
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .6s var(--ease), padding .4s var(--ease);
}
.index.open .index-list button { opacity: 1; transform: none; }
.index-list button:hover { padding-left: 14px; }
.index-list .n { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }
.index-list .t { font-family: var(--serif); font-size: clamp(28px, 4vw, 52px); font-weight: 300; line-height: 1; letter-spacing: -.02em; }
.index-list .t i { display: block; font-size: 15px; font-family: var(--sans); font-style: normal; color: var(--ink-dim); letter-spacing: 0; margin-top: 8px; }
.index-list .s { font-family: var(--mono); font-size: 10.5px; color: var(--ink-faint); text-align: right; max-width: 260px; }
.index-list button:hover .t { color: var(--brass); }

@media (max-width: 820px) {
  .panel {
    top: auto; bottom: 0; left: 0; right: 0; width: auto; transform: none;
    padding: 22px 18px 24px; max-height: 50vh; overflow: hidden;
    background: linear-gradient(to top, rgba(14,12,11,.97) 70%, rgba(14,12,11,0));
  }
  .panel::before { display: none; }
  .panel-head { margin-bottom: 14px; }
  .panel-title { font-size: 34px; }
  .panel-kind { font-size: 16px; }
  .panel-summary { font-size: 14.5px; margin-top: 12px; }
  .panel-points { display: none; }
  .panel-points li { font-size: 13px; padding: 7px 0 7px 24px; }
  .panel-points li::before { top: 9px; }
  .panel-hint, .keys { display: none; }
  .plan { top: 74px; bottom: auto; left: auto; right: 14px; width: 96px; }
  .plan svg { width: 96px; height: 72px; }
  .plan-label { text-align: right; font-size: 9.5px; }
  .brand-name { display: none; }
  .index-list button { grid-template-columns: 40px 1fr; }
  .index-list .s { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .scroll-cue i::after { animation: none; }
}

/* label that follows the cursor over an exhibit */
.cursor-tag {
  position: fixed; left: 0; top: 0; z-index: 9; pointer-events: none;
  padding: 7px 11px; border-radius: 999px;
  background: var(--ink); color: var(--bg); white-space: nowrap;
  opacity: 0; scale: .9; transition: opacity .25s, scale .3s var(--ease);
}
.cursor-tag.on { opacity: 1; scale: 1; }
@media (hover: none) { .cursor-tag { display: none; } }
@media (max-width: 820px) {
  .intro, .outro { bottom: 60px; }
}
@media (max-width: 820px) {
  .plan-label { overflow: hidden; text-overflow: ellipsis; max-width: 120px; margin-left: auto; }
}

/* slide dots under the panel text */
.panel-slides { margin-top: 20px; display: flex; gap: 6px; align-items: center; }
.panel-slides:empty { display: none; }
.panel-slides .slide-dot {
  width: 22px; height: 18px; position: relative;
}
.panel-slides .slide-dot::before {
  content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px;
  background: var(--line); transition: background .3s;
}
.panel-slides .slide-dot:hover::before { background: var(--ink-dim); }
.panel-slides .slide-dot.on::before { background: var(--brass); }
.panel.show > :nth-child(9) { transition-delay: .4s; }

/* our own progress rail, in place of the browser scrollbar */
.rail {
  position: fixed; z-index: 8; right: 16px; top: 50%; height: 46vh; width: 14px;
  transform: translateY(-50%);
}
.rail::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.rail-fill { position: absolute; left: 6px; top: 0; width: 1px; height: 0; background: var(--brass); }
.rail-thumb {
  position: absolute; left: 2px; top: 0; width: 9px; height: 9px; margin-top: -4.5px;
  border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px rgba(237,230,218,.12);
}
.rail button {
  position: absolute; left: 0; width: 14px; height: 14px; margin-top: -7px;
  display: grid; place-items: center;
}
.rail button::after {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--ink-faint); transition: border-color .3s, background .3s;
}
.rail button:hover::after, .rail button.on::after { border-color: var(--brass); background: var(--brass); }
.rail button span {
  position: absolute; right: 22px; white-space: nowrap; pointer-events: none;
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-dim); opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .3s var(--ease);
}
.rail button:hover span { opacity: 1; transform: none; }
@media (max-width: 820px) { .rail { right: 6px; height: 22vh; top: 36%; } .rail button span { display: none; } }

/* lightbox for the framed pictures */
.lightbox {
  position: fixed; inset: 0; z-index: 45; overflow: hidden;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  background: #0a0807; opacity: 0; transition: opacity .45s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }
.lb-ambient {
  position: absolute; inset: -10%; z-index: 0; background-size: cover; background-position: center;
  filter: blur(36px) saturate(1.3); opacity: .34; transform: scale(1.15); will-change: opacity;
  transition: background-image .6s, opacity .6s;
}
.lightbox::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(90% 80% at 50% 45%, rgba(10,8,7,.25), rgba(10,8,7,.85));
}
.lb-top, .lb-stage, .lb-thumbs { position: relative; z-index: 1; }

.lb-top { display: flex; align-items: center; justify-content: space-between; padding: 20px clamp(18px, 3vw, 40px); }
.lb-meta { display: flex; align-items: baseline; gap: 14px; }
.lb-title { font-family: var(--serif); font-size: 22px; letter-spacing: -.01em; }
.lb-count { color: var(--ink-faint); }
.lb-close {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.04); backdrop-filter: blur(10px);
  color: var(--ink-dim); transition: color .3s, border-color .3s, background .3s;
}
.lb-close i { font-style: normal; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); font-size: 11px; }
.lb-close:hover { color: var(--ink); border-color: rgba(237,230,218,.35); background: rgba(255,255,255,.08); }

.lb-stage { display: grid; place-items: center; min-height: 0; padding: 4px clamp(70px, 8vw, 130px); }
.lb-window {
  margin: 0; width: min(1180px, 100%, calc((100vh - 250px) * 1.6)); border-radius: 14px; overflow: hidden;
  background: #1a1715; box-shadow: 0 50px 120px -20px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.08);
  transform: translateY(18px) scale(.97); opacity: 0;
  transition: transform .7s var(--ease), opacity .5s var(--ease);
}
.lightbox.open .lb-window { transform: none; opacity: 1; }
.lb-chrome { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #221e1b; border-bottom: 1px solid rgba(255,255,255,.06); }
.lb-chrome i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.lb-chrome i:nth-child(2) { background: #febc2e; }
.lb-chrome i:nth-child(3) { background: #28c840; }
.lb-url {
  margin: 0 auto; transform: translateX(-24px); padding: 4px 14px; border-radius: 6px;
  background: rgba(255,255,255,.06); color: var(--ink-dim); font-size: 10.5px; letter-spacing: .04em; text-transform: none;
  max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lb-view { aspect-ratio: 16 / 10; overflow: hidden; background: #111; }
.lb-view img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .35s var(--ease), transform .55s var(--ease); }
.lb-view img.out-l { opacity: 0; transform: translateX(-40px); }
.lb-view img.out-r { opacity: 0; transform: translateX(40px); }

.lb-nav {
  position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink);
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); backdrop-filter: blur(10px);
  transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.lb-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lb-nav:hover { background: var(--brass); border-color: var(--brass); color: var(--bg); transform: scale(1.06); }
.lb-prev { left: clamp(12px, 2.5vw, 40px); }
.lb-next { right: clamp(12px, 2.5vw, 40px); }

.lb-thumbs { display: flex; justify-content: center; gap: 10px; padding: 18px 20px 24px; }
.lb-thumbs button {
  width: 96px; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; position: relative; flex: none;
  opacity: .45; outline: 1px solid rgba(255,255,255,.08); outline-offset: 0;
  transition: opacity .3s, outline-color .3s, transform .4s var(--ease);
}
.lb-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-thumbs button:hover { opacity: .8; transform: translateY(-2px); }
.lb-thumbs button.on { opacity: 1; outline: 2px solid var(--brass); outline-offset: 3px; }
.lb-thumbs button.on::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--brass);
}

@media (max-width: 820px) {
  .lb-stage { padding: 4px 14px; }
  .lb-window { width: 100%; border-radius: 10px; }
  .lb-chrome { height: 26px; } .lb-chrome i { width: 8px; height: 8px; }
  .lb-nav { display: none; }
  .lb-thumbs { justify-content: flex-start; overflow-x: auto; }
  .lb-thumbs button { width: 72px; }
  .lb-close span { display: none; } .lb-close { padding: 8px; }
}

/* "Say hello" contact card */
.hello { position: relative; }
.hello-card {
  position: absolute; left: 0; bottom: calc(100% + 12px); min-width: 260px; z-index: 12;
  display: flex; flex-direction: column; padding: 8px; border-radius: 14px;
  background: rgba(24, 20, 17, .96); border: 1px solid rgba(201,165,106,.25);
  box-shadow: 0 24px 60px rgba(0,0,0,.55); backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(8px) scale(.98); transform-origin: bottom left;
  transition: opacity .25s var(--ease), transform .35s var(--ease);
}
.hello-card.open { opacity: 1; transform: none; }
.hello-mail { padding: 10px 12px 12px; color: var(--brass); text-transform: none; letter-spacing: .02em; font-size: 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.hello-opt {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 11px 12px; border-radius: 9px; text-decoration: none; text-align: left; width: 100%;
  font-family: var(--sans); font-size: 14px; color: var(--ink); transition: background .2s, color .2s;
}
.hello-opt i { font-style: normal; color: var(--ink-faint); }
.hello-opt:hover { background: rgba(255,255,255,.06); }
.hello-opt:hover i { color: var(--brass); }
.hello-copy.done, .hello-copy.done i { color: #8fd1a6; }

/* "View photos" next to the slide dots */
.slides-view {
  margin-left: 10px; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-dim);
  transition: color .3s, border-color .3s;
}
.slides-view i { font-style: normal; color: var(--brass); }
.slides-view:hover { color: var(--ink); border-color: var(--brass); }

/* phones: picture controls sit at the top of the panel, always visible and easy to tap */
@media (max-width: 820px) {
  .panel { display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; }
  .panel > * { order: 3; }
  .panel > .panel-head { order: 1; }
  .panel > .panel-slides { order: 2; margin: 0 0 14px; flex-wrap: wrap; row-gap: 8px; }
  .panel-slides .slide-dot { width: 34px; height: 30px; }
  .panel-slides .slide-dot::before { top: 14px; height: 3px; border-radius: 2px; }
  .slides-view { margin-left: auto; padding: 9px 14px; }
}
.slides-view { white-space: nowrap; flex: none; }
@media (max-width: 820px) {
  .panel > .panel-slides { flex-wrap: nowrap; gap: 4px; }
  .panel-slides .slide-dot { width: 28px; flex: none; }
}
