/* mediocremarauders.com: one stylesheet for the wall and the catalogue pages */

:root {
  --wall: #3a4651;
  --wall-deep: #2b343d;
  --skirting: #232a31;
  --floor-a: #6f5644;
  --floor-b: #644c3b;
  --lamp-light: 255 231 190;
  --brass-light: #d8b878;
  --brass-dark: #8f6f39;
  --label: #f4f1ea;
  --label-ink: #23272b;
  --label-muted: #5c6268;
  --label-rule: #d8d3c8;
  --title-ink: #dfe4e6;
  --title-muted: #aeb8bf;
  --mat: #ece8df;
  --frame-black: #16191c;
  --oak-light: #b08a5c;
  --oak-dark: #7d5d3a;
  --canvas: #ebe6da;
  --canvas-weave: #ddd6c6;
  --paper: #f4f1ea;
  --focus-on-wall: #ffd27a;
  --focus-on-paper: #8a5a00;
  --serif: "Young Serif", Georgia, serif;
  --text: "Source Serif 4", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
img { display: block; }

/* ---------- the wall ---------- */

body.wall {
  min-height: 100vh;
  background: var(--wall);
  color: var(--title-ink);
  font-family: var(--sans);
}

.room {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow-x: hidden;
  background:
    radial-gradient(120% 70% at 50% 0%, rgb(255 255 255 / 0.06), transparent 60%),
    linear-gradient(var(--wall), var(--wall-deep));
}

/* plaster */
.room::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wall-title {
  position: relative;
  padding: 56px 0 0 max(5vw, 24px);
}

.wall-title h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.01em;
  opacity: 0.92;
}

.wall-title p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--title-muted);
}

.hang {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: min(44px, 3vw);
  padding: 110px 3vw 48px;
}

.piece {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-top: var(--drop, 0);
}

/* picture light: a brass bar on a stem, and the pool it throws */
.lamp {
  position: absolute;
  left: 50%;
  top: -46px;
  width: 38%;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 6px;
  background: linear-gradient(var(--brass-light), var(--brass-dark));
  box-shadow: 0 2px 3px rgb(0 0 0 / 0.4);
  z-index: 3;
}

.lamp::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -22px;
  width: 4px;
  height: 22px;
  transform: translateX(-50%);
  background: var(--brass-dark);
}

.pool {
  position: absolute;
  left: 50%;
  top: -110px;
  width: 170%;
  height: 150%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgb(var(--lamp-light) / 0.22), rgb(var(--lamp-light) / 0.07) 55%, transparent);
  pointer-events: none;
}

/* a canvas still waiting for paint has its light off */
.piece.blank .lamp { background: linear-gradient(#7c6a4c, #4f4128); }
.piece.blank .pool { display: none; }

.frame-link {
  position: relative;
  z-index: 1;
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: 2px;
  box-shadow: 0 30px 40px -18px rgb(0 0 0 / 0.65), 0 6px 10px rgb(0 0 0 / 0.35);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.frame-link:hover,
.frame-link:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 42px 50px -20px rgb(0 0 0 / 0.7), 0 8px 14px rgb(0 0 0 / 0.35);
}

.frame-link:focus-visible {
  outline: 3px solid var(--focus-on-wall);
  outline-offset: 10px;
}

.frame {
  padding: 16px;
  background: linear-gradient(135deg, #24292e, var(--frame-black) 40%, #0c0e10);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06), inset 0 -3px 0 rgb(0 0 0 / 0.5);
}

.frame.oak {
  background: linear-gradient(135deg, var(--oak-light), var(--oak-dark));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18), inset 0 -3px 0 rgb(0 0 0 / 0.25);
}

.mat {
  padding: 22px;
  background: var(--mat);
  box-shadow: inset 2px 2px 4px rgb(0 0 0 / 0.25);
}

.art {
  width: var(--art-w);
  height: auto;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.25);
}

/* the glass catches the light as you lean in */
.sheen {
  position: absolute;
  inset: 16px;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgb(255 255 255 / 0.1) 45%, transparent 55%);
  background-size: 250% 100%;
  background-position: 100% 0;
  transition: background-position 0.9s ease;
}

.frame-link:hover .sheen,
.frame-link:focus-visible .sheen { background-position: 0 0; }

/* a primed, unpainted canvas on its stretcher */
.canvas {
  position: relative;
  z-index: 1;
  width: var(--art-w);
  aspect-ratio: var(--ratio);
  background:
    repeating-linear-gradient(0deg, transparent 0 2px, rgb(0 0 0 / 0.035) 2px 3px),
    repeating-linear-gradient(90deg, transparent 0 2px, rgb(0 0 0 / 0.035) 2px 3px),
    radial-gradient(120% 120% at 30% 20%, var(--canvas), var(--canvas-weave));
  box-shadow:
    inset 0 0 0 1px rgb(0 0 0 / 0.08),
    6px 0 0 -1px #c9c1ae,
    0 26px 34px -18px rgb(0 0 0 / 0.6),
    0 4px 8px rgb(0 0 0 / 0.3);
}

/* museum label */
.label {
  position: relative;
  z-index: 1;
  width: min(210px, 14.6vw);
  min-width: 180px;
  padding: 16px 18px 14px;
  background: var(--label);
  color: var(--label-ink);
  box-shadow: 0 6px 10px -4px rgb(0 0 0 / 0.45);
}

.label h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.15;
}

.label .year {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--label-muted);
}

.label .medium {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--label-muted);
}

.label .actions {
  display: flex;
  gap: 16px;
  align-items: baseline;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--label-rule);
  flex-wrap: wrap;
  row-gap: 6px;
}

.label .actions a { white-space: nowrap; }

.label a {
  font-weight: 600;
  font-size: 14px;
  color: var(--label-ink);
  text-decoration: none;
}

.label a.go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.label a.go::before {
  content: "";
  border-left: 8px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.label a.more {
  font-weight: 500;
  color: var(--label-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.label a:hover { text-decoration: underline; text-underline-offset: 3px; }

.label a:focus-visible {
  outline: 3px solid var(--focus-on-paper);
  outline-offset: 4px;
  border-radius: 2px;
}

.floor {
  position: relative;
  height: 64px;
  background:
    linear-gradient(var(--skirting) 0 14px, transparent 14px),
    repeating-linear-gradient(90deg, var(--floor-a) 0 180px, var(--floor-b) 180px 360px);
  box-shadow: inset 0 16px 0 rgb(0 0 0 / 0.3);
}

/* narrower screens: the hang wraps instead of shrinking the pictures */
@media (max-width: 1100px) {
  .hang { flex-wrap: wrap; row-gap: 120px; }
  .piece { margin-top: 0; }
}

@media (max-width: 560px) {
  .wall-title h1 { font-size: 34px; }
  .piece { --art-w: min(var(--art-w-base), calc(100vw - 96px)) !important; }
}

/* ---------- catalogue pages ---------- */

body.catalogue {
  background: var(--paper);
  color: var(--label-ink);
  font-family: var(--text);
}

.back {
  position: absolute;
  top: 28px;
  left: max(5vw, 24px);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--label-muted);
  text-decoration: none;
}

.back:hover { color: var(--label-ink); text-decoration: underline; text-underline-offset: 3px; }
.back:focus-visible { outline: 3px solid var(--focus-on-paper); outline-offset: 4px; }

.entry {
  max-width: 1320px;
  margin: 0 auto;
  padding: 96px max(5vw, 24px) 80px;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
}

.plate {
  position: sticky;
  top: 96px;
  align-self: start;
  margin: 0;
}

.plate .thumb {
  padding: 10px;
  background: var(--frame-black);
  box-shadow: 0 18px 30px -14px rgb(0 0 0 / 0.45);
}

.plate .thumb.oak { background: linear-gradient(135deg, var(--oak-light), var(--oak-dark)); }
.plate .thumb > div { padding: 18px; background: var(--mat); }
.plate img { width: 100%; height: auto; }

.plate figcaption {
  margin-top: 18px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--label-muted);
}

.plate figcaption strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  color: var(--label-ink);
}

.entry h1 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.015em;
}

.lede { margin: 0 0 56px; max-width: 34em; font-size: 21px; line-height: 1.55; }

.entry h2 { margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: 26px; }

.section-intro { margin: 0 0 28px; max-width: 36em; font-size: 17px; line-height: 1.55; color: var(--label-muted); }

.xsec {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0 40px;
  margin-bottom: 64px;
}

.xsec svg { grid-row: span 3; width: 240px; height: auto; }

.layer { position: relative; padding: 18px 0 18px 22px; border-top: 1px solid var(--label-rule); }
.layer:last-of-type { border-bottom: 1px solid var(--label-rule); }

.layer::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot);
}

.layer h3 { margin: 0; font-family: var(--sans); font-weight: 600; font-size: 16px; }
.layer p { margin: 4px 0 0; font-size: 16px; line-height: 1.5; color: var(--label-muted); }

.making p { margin: 0 0 16px; max-width: 34em; font-size: 18px; line-height: 1.65; }

.credit { margin-top: 40px; font-family: var(--sans); font-size: 14px; color: var(--label-muted); }
.credit a { color: var(--label-ink); }
.credit a:focus-visible { outline: 3px solid var(--focus-on-paper); outline-offset: 3px; }

@media (max-width: 900px) {
  .entry { grid-template-columns: 1fr; gap: 40px; }
  .plate { position: static; max-width: 340px; }
  .xsec { grid-template-columns: 1fr; }
  .xsec svg { grid-row: auto; margin-bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- the lit room (3D) ---------- */

.gallery { display: none; }

body.is-3d { overflow: hidden; background: #14181d; }
body.is-3d .room { display: none; }

body.is-3d .gallery {
  display: block;
  position: fixed;
  inset: 0;
}

.gallery canvas { display: block; }

.label-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.label-anchor { position: relative; width: 0; height: 0; }

.label-anchor > .label,
.label-anchor > .wall-lettering {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: auto;
}

.gallery .label {
  width: 196px;
  min-width: 0;
  padding: 13px 15px 11px;
  border-radius: 1px;
  background: linear-gradient(180deg, #f7f4ee, #eeeae1);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.6) inset,
    0 10px 16px -8px rgb(0 0 0 / 0.65),
    0 2px 3px rgb(0 0 0 / 0.35);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery .label.is-lit {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.6) inset,
    0 16px 22px -10px rgb(0 0 0 / 0.7),
    0 2px 3px rgb(0 0 0 / 0.35);
}

.gallery .label h2 { font-size: 19px; }
.gallery .label .year { font-size: 12px; margin-top: 3px; }
.gallery .label .medium { font-size: 13px; margin-top: 8px; }
.gallery .label .actions { margin-top: 11px; padding-top: 9px; }
.gallery .label a { font-size: 13px; }

.wall-lettering {
  width: max-content;
  color: #e9edef;
  text-shadow: 0 1px 0 rgb(0 0 0 / 0.25);
}

.wall-lettering h1 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(40px, 4.4vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.wall-lettering p {
  margin: 12px 0 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: clamp(17px, 1.5vw, 22px);
  color: #aeb8bf;
}

/* a soft vignette and a little film grain over the room */
body.is-3d .gallery::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgb(5 7 10 / 0.55)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
body.is-3d .label-layer { z-index: 1; }

/* ---------- catalogue hero: the piece under its light ---------- */

.catalogue-hero {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 96px 24px 56px;
  color: var(--title-ink);
  background:
    radial-gradient(42% 60% at 50% 4%, rgb(var(--lamp-light) / 0.2), rgb(var(--lamp-light) / 0.05) 60%, transparent 85%),
    linear-gradient(var(--wall), var(--wall-deep));
}

.catalogue-hero .back { color: var(--title-muted); }
.catalogue-hero .back:hover { color: var(--title-ink); }
.catalogue-hero .back:focus-visible { outline-color: var(--focus-on-wall); }

.hero-lamp {
  width: min(240px, 30vw);
  height: 10px;
  margin-bottom: 30px;
  border-radius: 6px;
  background: linear-gradient(var(--brass-light), var(--brass-dark));
  box-shadow: 0 2px 3px rgb(0 0 0 / 0.4), 0 10px 30px rgb(var(--lamp-light) / 0.35);
}

.hero-frame { width: min(var(--hero-w, 640px), 82vw); box-shadow: 0 40px 60px -24px rgb(0 0 0 / 0.75), 0 8px 14px rgb(0 0 0 / 0.35); }
.hero-frame .art { width: 100%; }

.catalogue-hero h1 {
  margin: 44px 0 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.catalogue-hero .meta { margin: 10px 0 0; font-family: var(--sans); font-size: 15px; color: var(--title-muted); }

.catalogue-hero .play {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--label);
  color: var(--label-ink);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 8px 18px -8px rgb(0 0 0 / 0.6);
}

.catalogue-hero .play::before {
  content: "";
  border-left: 9px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.catalogue-hero .play:hover { background: #fff; }
.catalogue-hero .play:focus-visible { outline: 3px solid var(--focus-on-wall); outline-offset: 4px; }

.story {
  max-width: 820px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.story h2 {
  margin: 0 0 8px;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 36px;
}

.story .lede { margin-bottom: 64px; }

/* ---------- plaques and the close-up ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* the small plaque on the wall */
.label-anchor > .plaque,
.label-anchor > .detail-plaque {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: auto;
}

.plaque {
  display: grid;
  gap: 1px;
  padding: 6px 9px 6px;
  border: 0;
  border-radius: 1px;
  background: linear-gradient(180deg, #f7f4ee, #ebe6dc);
  color: var(--label-ink);
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.6) inset, 0 5px 9px -5px rgb(0 0 0 / 0.7), 0 1px 2px rgb(0 0 0 / 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease;
}

.plaque-name { font-family: var(--serif); font-size: 12px; line-height: 1.2; }
.plaque-year { font-family: var(--sans); font-size: 11px; color: var(--label-muted); }

.plaque.is-lit,
.plaque:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgb(255 255 255 / 0.6) inset, 0 8px 12px -6px rgb(0 0 0 / 0.75), 0 1px 2px rgb(0 0 0 / 0.35); }
.plaque:focus-visible { outline: 3px solid var(--focus-on-wall); outline-offset: 4px; }

.gallery.is-zoomed .plaque { opacity: 0; pointer-events: none; }

/* the detail plaque beside a piece in the close-up */
.detail-plaque {
  width: 300px;
  padding: 26px 26px 22px;
  border-radius: 1px;
  background: linear-gradient(180deg, #f8f6f1, #eeeae1);
  color: var(--label-ink);
  transform: translateY(10px);
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.7) inset, 0 22px 34px -16px rgb(0 0 0 / 0.75), 0 2px 4px rgb(0 0 0 / 0.35);
  transition: opacity 0.5s ease 0.45s, transform 0.6s ease 0.45s, visibility 0s linear 1s;
}

.detail-plaque.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.5s ease 0.55s, transform 0.6s ease 0.55s, visibility 0s;
}

.detail-plaque h2 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 38px;
  line-height: 1;
}

.detail-plaque h2:focus { outline: none; }
.detail-plaque .year { margin: 8px 0 0; font-family: var(--sans); font-size: 14px; color: var(--label-muted); }
.detail-plaque .medium { margin: 14px 0 0; font-family: var(--sans); font-size: 15px; line-height: 1.5; color: #3f454b; }

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--label-rule);
}

.detail-actions .play {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--label-ink);
  color: var(--label);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.detail-actions .play::before {
  content: "";
  border-left: 8px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.detail-actions .play:hover { background: #000; }

.detail-actions .more {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--label-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.detail-actions .more:hover { color: var(--label-ink); }
.detail-actions a:focus-visible { outline: 3px solid var(--focus-on-paper); outline-offset: 3px; }

/* back to the overview */
.back-to-wall {
  position: absolute;
  z-index: 2;
  top: 24px;
  left: 24px;
  padding: 9px 16px 9px 14px;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 999px;
  background: rgb(20 24 29 / 0.55);
  backdrop-filter: blur(6px);
  color: var(--title-ink);
  font-family: var(--sans);
  font-size: 14px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

.back-to-wall::before { content: "‹"; margin-right: 8px; }
.back-to-wall:hover { background: rgb(20 24 29 / 0.8); }
.back-to-wall:focus-visible { outline: 3px solid var(--focus-on-wall); outline-offset: 3px; }

.gallery.is-zoomed .back-to-wall { opacity: 1; visibility: visible; transition: opacity 0.4s ease 0.6s, visibility 0s; }

@media (prefers-reduced-motion: reduce) {
  .detail-plaque, .detail-plaque.is-open { transition: none; }
}

/* walking along the wall */
.walk {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 50%;
  background: rgb(20 24 29 / 0.5);
  backdrop-filter: blur(6px);
  color: var(--title-ink);
  font: 22px/1 var(--sans);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s, background 0.2s ease;
}

.walk-left { left: 20px; }
.walk-right { right: 20px; }
.walk-left::before { content: "‹"; }
.walk-right::before { content: "›"; }
.walk:hover { background: rgb(20 24 29 / 0.8); }
.walk:focus-visible { outline: 3px solid var(--focus-on-wall); outline-offset: 3px; }
.walk.is-available { opacity: 1; visibility: visible; transition: opacity 0.4s ease, visibility 0s, background 0.2s ease; }
.gallery.is-zoomed .walk { opacity: 0; visibility: hidden; }
.gallery.is-dragging canvas { cursor: grabbing !important; }

/* a slightly more compact detail plaque */
.detail-plaque { padding: 20px 22px 18px; }
.detail-plaque h2 { font-size: 32px; }
.detail-actions { margin-top: 16px; padding-top: 14px; }

/* ---------- the wall text in the close-up ---------- */

.detail-dock {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 64px;
  width: 400px;
  height: 0;
}

.detail-dock .detail-plaque {
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 34px 34px 28px;
  transform: translate(18px, -50%);
}

.detail-dock .detail-plaque.is-open { transform: translate(0, -50%); }

.detail-dock .detail-plaque h2 { font-size: 48px; }
.detail-dock .detail-plaque .year { margin-top: 10px; }
.detail-dock .detail-plaque .medium { margin-top: 18px; font-family: var(--text); font-size: 17px; line-height: 1.6; color: var(--label-ink); }

.layers {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--label-rule);
  list-style: none;
}

.layers li { display: grid; gap: 2px; padding-left: 18px; position: relative; font-family: var(--sans); font-size: 14px; line-height: 1.45; color: var(--label-muted); }
.layers li::before { content: ""; position: absolute; left: 0; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: #3346b8; }
.layers li:nth-child(2)::before { background: #ee5b2a; }
.layers li:nth-child(3)::before { background: #1b2470; }
.layers strong { font-weight: 600; color: var(--label-ink); }

.detail-dock .detail-actions { margin-top: 22px; padding-top: 20px; }
.detail-dock .detail-actions .play { padding: 12px 22px; font-size: 16px; }
.detail-dock .detail-actions .more { font-size: 15px; }

/* the trimmed wall text: name, a few lines, two buttons */
.detail-dock { width: 340px; }
.detail-dock .detail-plaque { width: 340px; padding: 30px 30px 26px; }
.detail-dock .detail-plaque h2 { font-size: 42px; }

.detail-plaque .wall-story {
  margin: 14px 0 0;
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.6;
  color: #3a3f45;
}

.detail-dock .detail-actions {
  gap: 10px;
  margin-top: 24px;
  padding-top: 0;
  border-top: 0;
}

.detail-dock .detail-actions .play,
.detail-dock .detail-actions .more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.detail-dock .detail-actions .more {
  border: 1.5px solid #c9c3b6;
  color: var(--label-ink);
  background: transparent;
}

.detail-dock .detail-actions .more:hover { border-color: var(--label-ink); background: rgb(0 0 0 / 0.04); }
