/* A light work surface around the original slide artwork. */
.gallery-site { --quiet: #57585e; --rule: #d9dadd; --surface: #f5f5f4; }
.gallery-site .home-bar [aria-current] { color: #19191b; font-weight: 700; }
.gallery-main { padding-bottom: clamp(44px, 7vw, 88px); }
.gallery-intro { display: flex; align-items: end; justify-content: space-between; gap: 36px; padding: clamp(36px, 6vw, 72px) 0 32px; border-bottom: 1px solid var(--rule); }
.gallery-intro h1, .detail-intro h1 { font: 650 clamp(46px, 6.2vw, 80px)/1.01 var(--sans); letter-spacing: -.062em; }
.gallery-intro p { max-width: 36ch; padding-bottom: 3px; color: var(--quiet); font-size: clamp(16px, 1.55vw, 19px); line-height: 1.42; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 38px 24px; margin-top: 28px; }
.gallery-card { min-width: 0; }
.cover { position: relative; display: block; width: 100%; min-width: 0; aspect-ratio: 16 / 9; isolation: isolate; overflow: hidden; border-radius: 6px; background: #ededeb; color: white; }
.cover::after, .artboard::after { content: ""; position: absolute; inset: 0; border: 1px solid rgb(30 30 35 / .13); border-radius: inherit; pointer-events: none; }
.cover img, .poster { width: 100%; height: 100%; object-fit: contain; }
.cover img { position: absolute; inset: 0; }
.play-badge { position: absolute; display: inline-flex; align-items: center; gap: 5px; right: 9px; bottom: 9px; padding: 4px 9px; border-radius: 30px; background: #fff; border: 1px solid rgb(0 0 0 / .15); box-shadow: 0 1px 6px #0002; color: #24242a; font-size: 11px; line-height: 1.5; font-weight: 650; }
.cover:hover .play-badge, .cover:focus-visible .play-badge { color: #fff; background: #242427; }
.card-meta, .detail-purpose, .quick-top > span { color: #83412e; font-size: 12px; font-weight: 650; line-height: 1.4; letter-spacing: .01em; }
.card-meta { margin: 13px 0 3px; }
.gallery-card h2 { font: 650 clamp(21px,2vw,27px)/1.14 var(--sans); letter-spacing: -.045em; }
.gallery-card h2 a, .slide-page, .gallery-back, .browse-more a, .gallery-footer a { text-decoration: none; }
.gallery-card h2 a:hover, .slide-page:hover, .gallery-back:hover, .browse-more a:hover, .gallery-footer a:hover, .link-action:hover { text-decoration: underline; }
.gallery-card p { margin: 6px 0 2px; color: var(--quiet); font-size: 15px; line-height: 1.4; }
.slide-page, .gallery-back { display: inline-flex; align-items: center; gap: 5px; min-height: 38px; font-size: 13px; font-weight: 600; }
.screen-reader, .copy-field { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.detail-intro { padding: 20px 0 clamp(20px, 3vw, 34px); }
.gallery-back { color: var(--quiet); margin-bottom: clamp(12px, 2vw, 24px); }
.detail-purpose { margin-bottom: 8px; }
.detail-intro h1 { font-size: clamp(38px, 5.3vw, 68px); }
.detail-summary { margin-top: 11px; font-size: clamp(16px, 1.6vw, 20px); color: var(--quiet); }
.studio { display: grid; grid-template-columns: minmax(0, 2.25fr) minmax(260px, 1fr); align-items: start; gap: clamp(18px,2.3vw,30px); }
.preview-col, .handoff { min-width: 0; }
.artboard { position: relative; width: 100%; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 6px; background: #eeedeb; }
.artboard .poster, .artboard gallery-slide { position: absolute; inset: 0; width: 100%; height: 100%; }
.artboard gallery-slide { display: block; visibility: hidden; }
.artboard.playing gallery-slide { visibility: visible; }
.artboard.playing .poster { visibility: hidden; }
.transport { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 18px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.position { min-width: 0; }
.position [data-position] { color: var(--quiet); font-size: 11px; font-weight: 600; display: block; }
.position [data-cue] { font-size: 14px; font-weight: 600; }
.word-guess { flex: 0 0 100%; font-size: 14px; font-weight: 600; }
.word-guess span { color: var(--quiet); font-weight: 400; }
.word-guess input { display: block; width: min(100%, 23em); min-height: 40px; margin: 4px 0 6px; border: 1px solid #b8b8bc; border-radius: 5px; padding: 6px 10px; background: white; color: #242427; font-size: 16px; }
.word-guess input:read-only { background: var(--surface); }
.step-buttons, .handoff-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.step-buttons button, .primary-action, .quick-top button { min-height: 40px; padding: 7px 15px; border: 1px solid #d0d0d2; border-radius: 99px; color: #242427; background: white; font-size: 13px; font-weight: 620; }
.step-buttons button[data-next], .primary-action { background: #252527; color: #fff; border-color: #252527; }
.step-buttons button:not(:disabled):hover, .quick-top button:hover { background: #eeeeef; }
.step-buttons button[data-next]:hover, .primary-action:hover { background: #424246; color: #fff; }
.try-it, [data-player-error] { margin-top: 12px; color: var(--quiet); font-size: 14px; line-height: 1.5; }
.credit { font-size: 12px; margin-top: 7px; color: var(--quiet); }
.credit a { text-underline-offset: 2px; }
.handoff { padding: clamp(17px,2vw,25px); border-radius: 8px; background: var(--surface); }
.handoff h3 { font: 650 23px/1.16 var(--sans); letter-spacing: -.045em; }
.handoff > p { margin: 7px 0 17px; font-size: 14px; color: var(--quiet); }
.topic-field label { display: block; font-weight: 610; margin-bottom: 5px; font-size: 13px; }
.topic-field label span { font-weight: 400; color: var(--quiet); }
.topic-field input, .prompt-text textarea { width: 100%; border: 1px solid #b8b8bc; border-radius: 5px; background: white; color: #242427; }
.topic-field input { padding: 10px; min-height: 42px; font-size: 16px; }
.topic-field input::placeholder { color: #6a6a70; font-size: 14px; }
.handoff-actions { margin-top: 14px; gap: 4px 12px; }
.primary-action { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.link-action { padding: 6px 0; min-height: 40px; color: #38383b; background: transparent; border: 0; font-size: 13px; font-weight: 600; }
[data-feedback]:not(:empty) { display: block; margin-top: 8px; font-size: 13px; color: #425139; }
.prompt-text { border-top: 1px solid var(--rule); margin-top: 14px; padding-top: 8px; }
.prompt-text summary { font-size: 13px; font-weight: 620; padding: 6px 0; cursor: pointer; }
.prompt-text textarea { display: block; margin-top: 6px; padding: 9px; font: 14px/1.5 var(--sans); resize: vertical; }
.reference-link { display: inline-block; margin-top: 8px; color: var(--quiet); font-size: 13px; }
.browse-more, .gallery-footer > div, .gallery-footer nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
.browse-more { margin-top: clamp(30px, 5vw, 60px); padding-top: 17px; border-top: 1px solid var(--rule); font-size: 14px; font-weight: 600; }
.gallery-footer { border-top: 1px solid var(--rule); padding: 22px 0; color: var(--quiet); font-size: 13px; }
.gallery-footer > div > a { color: #28282b; font-weight: 650; }
.quick-view { width: min(1100px, calc(100% - 40px)); max-width: none; max-height: calc(100dvh - 44px); padding: 0; border: 1px solid #ccc; border-radius: 12px; color: var(--home-ink); background: white; overscroll-behavior: contain; box-shadow: 0 24px 70px #17171e44; }
.quick-view::backdrop { background: rgb(23 23 30 / .58); }
html:has(.quick-view[open]) { overflow: hidden; }
.quick-inner { padding: clamp(17px, 2.4vw, 32px); }
.quick-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.quick-top button { min-height: 36px; padding: 4px 12px; }
.quick-top button span { padding-left: 3px; font-size: 18px; }
.quick-inner h2 { font: 650 clamp(28px, 3.4vw, 48px)/1.06 var(--sans); letter-spacing: -.05em; margin: 6px 0 18px; }
.quick-inner > .slide-page { margin: 10px 0 0; }
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .studio { grid-template-columns: minmax(0, 1.7fr) minmax(235px, 1fr); }
}
@media (max-width: 740px) {
  .gallery-intro { display: block; padding-bottom: 20px; }
  .gallery-intro p { margin-top: 12px; max-width: 46ch; }
  .studio { grid-template-columns: minmax(0,1fr); }
  .quick-view { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .handoff { padding: 18px; }
}
@media (max-width: 540px) {
  .gallery-grid { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .gallery-intro { padding-top: 32px; }
  .gallery-card h2 { font-size: 24px; }
  .quick-inner { padding: 15px; }
  .gallery-footer > div { align-items: start; flex-direction: column; }
  .gallery-footer nav { gap: 8px 16px; }
}
