/* Benny Graves · The Studio (the gallery view: .view-gallery, classes .st-).
   His recording studio, built as depth layers rendered once (views/gallery/build/render_studio.py → assets/st-*.webp):
   walnut slat wall with its downlights, the vocal booth through the side-wall glass, monitors, the console, soft-focus
   foreground. Each layer moves at its own rate; all motion is transforms. The plaques are views/gallery/plaque.css.
   Covers are only ever scaled: nothing is drawn over the art. */

.view-gallery {
  --st-serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --st-sans: "Hanken Grotesk", ui-sans-serif, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --st-cream: #efe3cc; --st-cream-2: rgba(239, 227, 204, .72); --st-cream-3: rgba(239, 227, 204, .44);
  --st-gold: #d2ae63; --st-gold-2: #e2c27a; --st-ink: #120c08; --st-line: rgba(226, 194, 122, .42);
  --st-room: #0d0907; --st-ui: rgba(18, 12, 8, .62);
  background: var(--st-room); color: var(--st-cream); font: 16px/1.5 var(--st-sans); -webkit-font-smoothing: antialiased;
}
html[data-theme="day"] .view-gallery { --st-room: #2a1b11; --st-ui: rgba(30, 19, 11, .55); }
.view-gallery button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
.view-gallery [hidden] { display: none !important; }
.view-gallery .st-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.view-gallery :focus-visible { outline: 2px solid var(--st-gold-2); outline-offset: 3px; }

/* ---------------- the room ---------------- */
.view-gallery .st-stage { position: absolute; inset: 0; overflow: hidden; background: var(--st-room); touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.view-gallery .st-stage.dragging { cursor: grabbing; }
.view-gallery .st-room { position: absolute; inset: 0; }
.view-gallery .st-L { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; pointer-events: none; }
/* the wall and its plaques are flat (2D): nothing in the room changes size or turns while you browse */
.view-gallery .st-wall > *, .view-gallery .st-decor > *, .view-gallery .st-plaques > * { position: absolute; left: 0; top: 0; }
/* each plaque's holder and its shadow / pool / pin are moved by the camera on their own (transforms only); the layers that
   hold them never move, so a wall of any length costs what one screen does */
.view-gallery .st-decor > *, .view-gallery .st-plaques > .st-slot { will-change: transform; }
.view-gallery .st-slats, .view-gallery .st-soffit { background-repeat: repeat-x; background-position: 0 0; }
.view-gallery .st-slats { background-image: url("assets/st-slats-night.webp"); }
.view-gallery .st-soffit { background-image: url("assets/st-soffit-night.webp"); }
html[data-theme="day"] .view-gallery .st-slats { background-image: url("assets/st-slats-day.webp"); }
html[data-theme="day"] .view-gallery .st-soffit { background-image: url("assets/st-soffit-day.webp"); }
.view-gallery .st-pool, .view-gallery .st-pin, .view-gallery .st-pshadow { background-size: 100% 100%; background-repeat: no-repeat; transition: opacity .45s ease; }
.view-gallery .st-pool { background-image: url("assets/st-pool-night.webp"); }
.view-gallery .st-pin { background-image: url("assets/st-pin-night.webp"); }
html[data-theme="day"] .view-gallery .st-pool { background-image: url("assets/st-pool-day.webp"); }
html[data-theme="day"] .view-gallery .st-pin { background-image: url("assets/st-pin-day.webp"); }
.view-gallery .st-pool.dim { opacity: .28; }
.view-gallery .st-pshadow { background-image: url("assets/shadow-night.webp"); }
html[data-theme="day"] .view-gallery .st-pshadow { background-image: url("assets/shadow-day.webp"); }
.view-gallery .st-pshadow.empty { opacity: 0; }
.view-gallery .st-slot { width: 0; height: 0; }
.view-gallery .st-slot > .pq { position: absolute; left: 0; top: 0; transform-origin: 50% 50%; cursor: pointer; pointer-events: auto; backface-visibility: hidden; -webkit-backface-visibility: hidden; }

.view-gallery .st-bg { background-size: 100% 100%; background-repeat: no-repeat; }
.view-gallery .st-booth { background-image: url("assets/st-booth-night.webp"); }
.view-gallery .st-boothin { background-image: url("assets/st-boothin-night.webp"); }
.view-gallery .st-mon { background-image: url("assets/st-monitor-night.webp"); }
.view-gallery .st-console { background-image: url("assets/st-console-night.webp"); background-repeat: repeat-x; background-size: auto 100%; }
.view-gallery .st-chair { background-image: url("assets/st-chair-night.webp"); }
.view-gallery .st-guitar { background-image: url("assets/st-guitar-night.webp"); }
.view-gallery .st-plant { background-image: url("assets/st-plant-night.webp"); }
html[data-theme="day"] .view-gallery .st-booth { background-image: url("assets/st-booth-day.webp"); }
html[data-theme="day"] .view-gallery .st-boothin { background-image: url("assets/st-boothin-day.webp"); }
html[data-theme="day"] .view-gallery .st-mon { background-image: url("assets/st-monitor-day.webp"); }
html[data-theme="day"] .view-gallery .st-console { background-image: url("assets/st-console-day.webp"); }
html[data-theme="day"] .view-gallery .st-chair { background-image: url("assets/st-chair-day.webp"); }
html[data-theme="day"] .view-gallery .st-guitar { background-image: url("assets/st-guitar-day.webp"); }
html[data-theme="day"] .view-gallery .st-plant { background-image: url("assets/st-plant-day.webp"); }
/* the photo-real room (?room=photo): the same layers, photographed materials (build/prep_photo.py → assets/stp-*.webp).
   The photo wall carries its own ceiling, downlights and cones, so the drawn ceiling band, pins and pools step aside */
.view-gallery.room-photo .st-slats { background-image: url("assets/stp-wall-night.webp"); background-repeat: repeat-x; }
.view-gallery.room-photo .st-soffit, .view-gallery.room-photo .st-pool, .view-gallery.room-photo .st-pin { display: none; }
.view-gallery.room-photo .st-booth { background-image: url("assets/stp-booth-night.webp"); }
.view-gallery.room-photo .st-boothin { background-image: url("assets/stp-boothin-night.webp"); }
.view-gallery.room-photo .st-mon { background-image: url("assets/stp-monitor-night.webp"); }
.view-gallery.room-photo .st-console { background-image: url("assets/stp-console-night.webp"); }
.view-gallery.room-photo .st-plant { background-image: url("assets/stp-plant-night.webp"); }
html[data-theme="day"] .view-gallery.room-photo .st-slats { background-image: url("assets/stp-wall-day.webp"); }
html[data-theme="day"] .view-gallery.room-photo .st-booth { background-image: url("assets/stp-booth-day.webp"); }
html[data-theme="day"] .view-gallery.room-photo .st-boothin { background-image: url("assets/stp-boothin-day.webp"); }
html[data-theme="day"] .view-gallery.room-photo .st-mon { background-image: url("assets/stp-monitor-day.webp"); }
html[data-theme="day"] .view-gallery.room-photo .st-console { background-image: url("assets/stp-console-day.webp"); }
html[data-theme="day"] .view-gallery.room-photo .st-plant { background-image: url("assets/stp-plant-day.webp"); }
.view-gallery.room-photo { --st-room: #0a0705; }
html[data-theme="day"] .view-gallery.room-photo { --st-room: #24170e; }

/* the room's own falloff: darker toward the edges and under the ceiling (painted on the room, never on any art) */
.view-gallery .st-vignette { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 75% at 50% 44%, transparent 58%, rgba(5, 3, 2, .5) 100%), linear-gradient(180deg, rgba(5, 3, 2, .5) 0, rgba(5, 3, 2, 0) 20%); }
html[data-theme="day"] .view-gallery .st-vignette { background: radial-gradient(120% 75% at 50% 44%, transparent 62%, rgba(20, 12, 6, .3) 100%), linear-gradient(180deg, rgba(20, 12, 6, .3) 0, rgba(20, 12, 6, 0) 18%); }

/* ---------------- the studio's own UI (the site's nav and dock stay the site's) ---------------- */
.view-gallery .st-ui { position: absolute; inset: 0; pointer-events: none; z-index: 4; transition: opacity .3s ease; }
.view-gallery.is-holding .st-ui { opacity: 0; transition-duration: .2s; }
.view-gallery.is-holding .st-ui * { pointer-events: none !important; }
.view-gallery .st-ui > * { pointer-events: auto; }
.view-gallery .st-head { position: absolute; left: 0; right: 0; text-align: center; pointer-events: none !important; }
.view-gallery .st-title { margin: 0; display: flex; align-items: center; justify-content: center; gap: 18px; font: 500 30px/1 var(--st-serif); font-variation-settings: "opsz" 60; letter-spacing: .42em; text-indent: .42em; text-transform: uppercase; color: var(--st-cream); text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.view-gallery .st-title::before, .view-gallery .st-title::after { content: ""; width: 56px; height: 1px; background: linear-gradient(90deg, transparent, var(--st-gold)); flex: none; }
.view-gallery .st-title::after { background: linear-gradient(90deg, var(--st-gold), transparent); margin-left: -.42em; }
.view-gallery .st-sub { margin: 8px 0 0; font: italic 400 17px/1.2 var(--st-serif); font-variation-settings: "opsz" 24; color: var(--st-cream-2); text-shadow: 0 1px 10px rgba(0, 0, 0, .7); }

.view-gallery .st-row { position: absolute; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; pointer-events: none !important; }
.view-gallery .st-row > * { pointer-events: auto; }
.view-gallery .st-pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; touch-action: pan-x; overscroll-behavior-x: contain; padding: 2px; max-width: 100%; }
.view-gallery .st-pills::-webkit-scrollbar { display: none; }
.view-gallery .st-pill {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(239, 227, 204, .38); background: var(--st-ui); color: var(--st-cream);
  font: 600 12px/1 var(--st-sans); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.view-gallery .st-pill[aria-current="true"] { background: linear-gradient(180deg, var(--st-gold-2), var(--st-gold)); color: var(--st-ink); border-color: var(--st-gold-2); box-shadow: 0 0 22px rgba(226, 180, 90, .28); }
.view-gallery .st-pill.quiet { font: italic 400 14px/1 var(--st-serif); letter-spacing: .02em; text-transform: none; border-style: dashed; color: var(--st-cream-2); }
.view-gallery .st-pill.quiet[aria-current="true"] { color: var(--st-ink); border-style: solid; }
.view-gallery .st-div { width: 1px; height: 28px; background: rgba(239, 227, 204, .3); flex: none; }
.view-gallery .st-browse {
  flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; cursor: pointer;
  border: 1px solid var(--st-gold); border-radius: 3px; background: rgba(18, 12, 8, .55); color: var(--st-gold-2);
  font: 600 12px/1 var(--st-sans); letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
}
.view-gallery .st-browse:hover { background: rgba(210, 174, 99, .14); }
.view-gallery .st-home {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; cursor: pointer;
  border: 1px solid rgba(239, 227, 204, .38); border-radius: 999px; background: var(--st-ui); color: var(--st-cream);
  font: 600 12px/1 var(--st-sans); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
}
.view-gallery .st-home svg, .view-gallery .st-browse svg, .view-gallery .st-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* under the plaque: what you're looking at (catalog facts), where you are, how to move */
.view-gallery .st-cap { position: absolute; left: 0; right: 0; text-align: center; pointer-events: none !important; transition: opacity .2s ease; }
.view-gallery .st-cap.swap { opacity: 0; }
.view-gallery .st-cap-t { margin: 0; font: italic 500 22px/1.15 var(--st-serif); font-variation-settings: "opsz" 30; color: var(--st-cream); text-shadow: 0 1px 12px rgba(0, 0, 0, .8); padding: 0 24px; text-wrap: balance; }
.view-gallery .st-cap-m { margin: 6px 0 0; font: 600 11px/1.3 var(--st-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--st-cream-2); text-shadow: 0 1px 10px rgba(0, 0, 0, .8); }
.view-gallery .st-nav { position: absolute; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 16px; pointer-events: none !important; }
.view-gallery .st-nav > * { pointer-events: auto; }
.view-gallery .st-arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(239, 227, 204, .45); background: var(--st-ui); color: var(--st-cream); display: grid; place-items: center; cursor: pointer; padding: 0; }
.view-gallery .st-arrow:disabled { opacity: .3; cursor: default; }
.view-gallery .st-hintline { display: flex; align-items: center; gap: 12px; font: italic 400 15px/1 var(--st-serif); color: var(--st-cream-2); white-space: nowrap; text-shadow: 0 1px 10px rgba(0, 0, 0, .8); pointer-events: none !important; }
.view-gallery .st-hintline::before, .view-gallery .st-hintline::after { content: ""; width: 40px; height: 1px; background: var(--st-line); }
/* where you are on the genre's wall: "2 of 11 · Pop" (it changes as you move; the number is the plaque in front) */
.view-gallery .st-count { position: absolute; left: 0; right: 0; margin: 0; text-align: center; pointer-events: none !important;
  font: 600 11px/1 var(--st-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--st-cream-3); font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .8); white-space: nowrap; }
.view-gallery .st-count b { font-weight: 700; color: var(--st-gold-2); }
.view-gallery .st-kb { position: absolute; left: 50%; top: 40%; transform: translateX(-50%); z-index: 5; margin: 0; padding: 8px 14px; border-radius: 6px; background: var(--st-cream); color: var(--st-ink); font: 500 13px/1.3 var(--st-sans); display: none; white-space: nowrap; }
.view-gallery .st-kb.on { display: block; }

/* ---------------- the console's working keys (master section): docked, never on the moving console ---------------- */
.view-gallery .st-master {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%); z-index: 1;
  display: flex; align-items: center; gap: 12px; padding: 10px 14px 12px; border-radius: 10px;
  background: linear-gradient(180deg, #241b14, #140f0b 55%, #0e0a07);
  border: 1px solid rgba(226, 194, 122, .26);
  /* a lit panel set into the desk; the halo dims the decorative strips around it so these read as the working keys */
  box-shadow: inset 0 1px 0 rgba(255, 232, 190, .1), inset 0 -1px 0 rgba(0, 0, 0, .6), 0 14px 34px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .5), 0 0 70px 34px rgba(6, 4, 3, .5);
}
.view-gallery.room-photo .st-master { background: linear-gradient(180deg, #2a2119, #17110c 55%, #0f0b08); border-color: rgba(214, 178, 110, .3); }
.view-gallery .st-keys { display: flex; gap: 8px; }
.view-gallery .st-mdiv { width: 1px; align-self: stretch; margin: 4px 2px; background: linear-gradient(180deg, transparent, rgba(226, 194, 122, .35), transparent); }
.view-gallery .st-key {
  position: relative; display: block; min-width: 44px; min-height: 50px; padding: 0; margin: 0; border: 0; cursor: pointer;
  border-radius: 7px; background: #060403; box-shadow: inset 0 2px 3px rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 232, 190, .06);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
/* the keycap: sits 2 px proud of its well; pressing takes it down (a transform), the well's dark lip disappears under it */
.view-gallery .st-kc {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 100%; min-height: 50px;
  padding: 7px 14px 8px; border-radius: 6px; box-sizing: border-box;
  background: linear-gradient(180deg, #30261e, #1c1510 70%, #17110d);
  box-shadow: inset 0 1px 0 rgba(255, 236, 200, .14), inset 0 -2px 0 rgba(0, 0, 0, .4);
  transform: translateY(-2px); transition: transform .08s ease-out;
}
.view-gallery .st-key.is-down .st-kc, .view-gallery .st-key:active .st-kc, .view-gallery .st-key.is-hit .st-kc { transform: translateY(0); transition-duration: .04s; }
/* the light: a dim lens, and its glow fading in (opacity only) */
.view-gallery .st-led { position: relative; display: block; width: 20px; height: 3px; border-radius: 2px; background: #3b2a14; flex: none; }
.view-gallery .st-led::after { content: ""; position: absolute; inset: -1px; border-radius: 3px; background: #ffbf5e; box-shadow: 0 0 7px 2px rgba(255, 168, 64, .75), 0 0 16px 4px rgba(255, 150, 40, .3); opacity: 0; transition: opacity .08s ease-out; }
.view-gallery .st-key[aria-pressed="true"] .st-led::after, .view-gallery .st-key.is-down .st-led::after, .view-gallery .st-key.is-hit .st-led::after { opacity: 1; }
.view-gallery .st-kl { font: 650 11px/1.1 var(--st-sans); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; color: rgba(239, 227, 204, .84);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .7), 0 1px 0 rgba(255, 236, 200, .07); }
.view-gallery .st-key[aria-pressed="true"] .st-kl { color: #ffd894; }
.view-gallery .st-key-listen .st-kl { color: var(--st-gold-2); }
.view-gallery .st-key-listen .st-led { background: #4a3514; }
.view-gallery .st-key-arrow .st-kc { padding: 7px 12px 8px; }
.view-gallery .st-key:focus-visible { outline: 2px solid var(--st-gold-2); outline-offset: 2px; }
.view-gallery .st-key:disabled { cursor: default; opacity: .45; }
/* Play / Pause exists only while a Spotify song is loaded (it reports and obeys); the readout is read-only */
.view-gallery .st-transport { display: flex; align-items: center; gap: 10px; }
.view-gallery .st-transport[hidden] { display: none !important; }
.view-gallery .st-keys-g .st-kl { max-width: 8.6em; white-space: normal; text-align: center; line-height: 1.12; }
/* a console too wide for its screen (a tablet, or many genres) stacks: the genre keys in one row, the record keys below */
.view-gallery .st-master.stacked { flex-direction: column; align-items: stretch; gap: 8px; width: min(calc(100% - 24px), 860px); box-sizing: border-box; }
.view-gallery .st-master.stacked .st-mdiv { display: none; }
.view-gallery .st-master.stacked .st-keys-g { display: grid; grid-template-columns: repeat(var(--key-n, 6), minmax(0, 1fr)); }
.view-gallery .st-master.stacked .st-keys-g .st-kc { padding: 6px 3px 7px; }
.view-gallery .st-master.stacked .st-keys-g .st-kl { font-size: 10.5px; letter-spacing: .08em; max-width: none; }
.view-gallery .st-master.stacked .st-keys-m { justify-content: center; }
.view-gallery .st-master.stacked .st-keys-m .st-key-sur, .view-gallery .st-master.stacked .st-keys-m .st-key-listen { flex: 1 1 0; }
@media (max-width: 899px) { .view-gallery .st-master.stacked .st-keys-g { grid-template-columns: repeat(var(--key-cols, 4), minmax(0, 1fr)); } }
.view-gallery .st-key-play .st-kl { max-width: 220px; overflow: hidden; text-overflow: ellipsis; letter-spacing: .08em; }
.view-gallery .st-clock { position: relative; font: 500 12px/1 "IBM Plex Mono", ui-monospace, monospace; color: rgba(239, 227, 204, .78); padding-bottom: 6px; white-space: nowrap; }
.view-gallery .st-clock::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #ffbf5e 0 calc(var(--st-prog, 0) * 100%), rgba(239, 227, 204, .16) calc(var(--st-prog, 0) * 100%)); }
@media (prefers-reduced-motion: reduce) { .view-gallery .st-kc, .view-gallery .st-led::after { transition: none; } .view-gallery .st-key.is-down .st-kc, .view-gallery .st-key:active .st-kc, .view-gallery .st-key.is-hit .st-kc { transform: translateY(-2px); } }

/* ---------------- the plaque in your hands ---------------- */
.view-gallery .gv-hand { position: absolute; inset: 0; z-index: 6; }
.view-gallery .gv-hand[hidden] { display: none; }
.view-gallery .gv-hand.settling { pointer-events: none; }
.view-gallery .gv-scrim { position: absolute; inset: 0; background: rgba(8, 5, 3, .86); opacity: 0; }
.view-gallery .gv-hold { position: absolute; inset: 0; pointer-events: none; }
.view-gallery .gv-held { position: absolute; left: var(--hx); top: var(--hy); width: var(--hw); height: var(--hh); margin: calc(var(--hh) / -2) 0 0 calc(var(--hw) / -2); transform-style: preserve-3d; pointer-events: auto; cursor: grab; touch-action: none; }
.view-gallery .gv-held > .pq { position: absolute; left: 0; top: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; transform: translateZ(calc(var(--hd) / 2)); }
.view-gallery .gv-hs { position: absolute; left: 0; top: 0; display: block; background: linear-gradient(180deg, #2a2724, #121110 60%, #0b0a09); }
.view-gallery .gv-hs-l, .view-gallery .gv-hs-r { width: var(--hd); height: var(--hh); }
.view-gallery .gv-hs-t, .view-gallery .gv-hs-b { width: var(--hw); height: var(--hd); }
.view-gallery .gv-hs-l { transform: translateX(calc(var(--hd) / -2)) rotateY(-90deg); }
.view-gallery .gv-hs-r { transform: translateX(calc(var(--hw) - var(--hd) / 2)) rotateY(90deg); }
.view-gallery .gv-hs-t { transform: translateY(calc(var(--hd) / -2)) rotateX(90deg); background: #34302b; }
.view-gallery .gv-hs-b { transform: translateY(calc(var(--hh) - var(--hd) / 2)) rotateX(-90deg); background: #0b0a09; }
.view-gallery .gv-hback { position: absolute; inset: 0; transform: rotateY(180deg) translateZ(calc(var(--hd) / 2)); backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #15130f; }
.view-gallery .gv-big { position: absolute; left: 0; top: 0; display: block; margin: 0; transform-origin: 0 0; pointer-events: auto; cursor: zoom-out; box-shadow: 0 18px 50px rgba(0, 0, 0, .5), 0 3px 10px rgba(0, 0, 0, .35); }
.view-gallery .gv-big[hidden] { display: none; }
.view-gallery .gv-hinfo { position: absolute; left: 0; right: 0; top: var(--ay, 80%); display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 0 16px; opacity: 0; pointer-events: none; }
.view-gallery .gv-hinfo > * { pointer-events: auto; }
.view-gallery .gv-hcap { margin: 0; text-align: center; max-width: 640px; }
.view-gallery .gv-hcap .t { display: block; font: italic 500 22px/1.15 var(--st-serif); font-variation-settings: "opsz" 30; color: var(--st-cream); text-wrap: balance; }
.view-gallery .gv-hcap .m { display: block; text-wrap: balance; margin-top: 6px; font: 600 11px/1.4 var(--st-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--st-cream-2); }
.view-gallery .gv-hact { display: flex; gap: 10px; white-space: nowrap; }
.view-gallery .gv-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: 0 20px; cursor: pointer;
  border-radius: 999px; border: 1px solid rgba(239, 227, 204, .45); background: rgba(18, 12, 8, .6); color: var(--st-cream);
  font: 600 12.5px/1 var(--st-sans); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
}
.view-gallery .gv-pill-gold { background: linear-gradient(180deg, var(--st-gold-2), var(--st-gold)); color: var(--st-ink); border-color: var(--st-gold-2); }
.view-gallery .gv-pill:active, .view-gallery .st-pill:active, .view-gallery .st-browse:active { transform: translateY(1px); }

/* ---------------- iPhone ---------------- */
@media (max-width: 719px) {
  .view-gallery .st-title { font-size: 21px; gap: 10px; letter-spacing: .34em; text-indent: .34em; }
  .view-gallery .st-title::before, .view-gallery .st-title::after { display: none; }
  .view-gallery .st-sub { font-size: 14px; margin-top: 5px; }
  .view-gallery .st-row { padding: 0; }
  .view-gallery .st-pills { justify-content: flex-start; padding: 2px 14px; gap: 6px; width: 100%; }
  .view-gallery .st-pill { padding: 0 14px; font-size: 11.5px; letter-spacing: .1em; }
  .view-gallery .st-pill.quiet { font-size: 13.5px; }
  .view-gallery .st-div { display: none; }
  .view-gallery .st-browse { padding: 0 16px; font-size: 11.5px; letter-spacing: .16em; min-height: 42px; }
  .view-gallery .st-home { padding: 0 12px 0 9px; font-size: 11px; letter-spacing: .1em; min-height: 44px; }
  .view-gallery .st-cap-t { font-size: 20px; }
  .view-gallery .st-cap-m { font-size: 10.5px; letter-spacing: .12em; }
  .view-gallery .st-hintline, .view-gallery .st-arrow { display: none; }
  /* the console on a phone: two rows (genres, then records), every key at least 44 × 48 */
  .view-gallery .st-master { flex-direction: column; align-items: stretch; gap: 8px; width: calc(100% - 20px); padding: 9px 9px 10px; }
  .view-gallery .st-mdiv { display: none; }
  .view-gallery .st-keys-g .st-key { flex: 1 1 0; min-width: 0; }
  .view-gallery .st-keys-g .st-kc { padding: 6px 2px 7px; gap: 5px; }
  .view-gallery .st-keys-g .st-kl { white-space: normal; text-align: center; font-size: 10px; letter-spacing: .08em; line-height: 1.12; }
  .view-gallery .st-keys-g.st-keys-rows { display: grid; grid-template-columns: repeat(var(--key-cols, 3), minmax(0, 1fr)); }
  .view-gallery .st-keys { gap: 6px; }
  .view-gallery .st-keys-m .st-key-sur, .view-gallery .st-keys-m .st-key-listen { flex: 1 1 0; }
  .view-gallery .st-keys-m .st-key-arrow { flex: 0 0 64px; }
  .view-gallery .st-keys-m .st-kl { font-size: 10.5px; letter-spacing: .1em; }
  .view-gallery .st-transport { justify-content: space-between; }
  .view-gallery .st-transport .st-key { flex: 1 1 auto; min-width: 0; }
  .view-gallery .st-key-play .st-kl { max-width: 100%; }
  .view-gallery .st-count { font-size: 10.5px; letter-spacing: .16em; }
  .view-gallery .gv-hcap .t { font-size: 19px; }
  .view-gallery .gv-hact { gap: 8px; }
  .view-gallery .gv-hact .gv-pill { padding: 0 14px; font-size: 11.5px; letter-spacing: .1em; }
}
@media (max-width: 359px) { .view-gallery .gv-hact .gv-pill { padding: 0 11px; font-size: 11px; letter-spacing: .06em; } }
@media (prefers-reduced-motion: reduce) { .view-gallery .st-pill, .view-gallery .st-pool, .view-gallery .st-cap { transition: none; } }
