/* The gallery is deliberately scoped: homepage and downloads retain their styles. */
.gallery-page { background: #0c0e12; color: #e9eaed; font-size: 16px; line-height: 1.65; }
.gallery-page * { box-sizing: border-box; }
.gallery-page [hidden] { display: none !important; }
.gallery-page main a, .gallery-footer a { color: inherit; }
.gallery-page main a:hover, .gallery-footer a:hover { color: #ff7398; }
.gallery-page main :is(a, button):focus-visible,
.gallery-viewer :is(a, button):focus-visible,
.gallery-footer a:focus-visible { outline: 3px solid #ff7398; outline-offset: 5px; }
.gallery-page main { overflow: clip; }
.gallery-wrap { width: min(100% - 64px, 1360px); margin-inline: auto; }
.gallery-skip { position: fixed; top: 12px; left: 16px; z-index: 20; padding: 12px 20px; background: #fff; color: #12151b; transform: translateY(-160%); }
.gallery-skip:focus { transform: none; }
.gallery-page h1, .gallery-page h2, .gallery-page h3 { color: #fff; letter-spacing: -.035em; }
.gallery-eyebrow { font-size: 11px; font-weight: 650; line-height: 1.5; letter-spacing: .17em; text-transform: uppercase; }
.gallery-hero { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 90px); align-items: start; padding-block: 106px 80px; }
.gallery-intro { padding-top: 24px; }
.gallery-intro .gallery-eyebrow { color: #ff7398; margin-bottom: 22px; }
.gallery-intro h1 { font-size: clamp(55px, 6.4vw, 100px); font-weight: 550; line-height: .99; margin-bottom: 28px; }
.gallery-deck { font-size: 21px; color: #fff; font-weight: 500; margin-bottom: 12px; }
.gallery-intro > p:not(.gallery-eyebrow, .gallery-deck) { max-width: 370px; color: #aeb3bf; }
.gallery-action { display: inline-flex; justify-content: space-between; align-items: center; gap: 24px; padding: 12px 0; border-bottom: 1px solid #ff7398; font-weight: 600; }
.gallery-intro .gallery-action { margin-block: 22px 40px; }
.gallery-intro .gallery-intro-note { font-size: 12px; max-width: 300px !important; color: #898f9c !important; }
.gallery-feature { margin: 0; min-width: 0; }
.gallery-image-link { position: relative; display: block; overflow: hidden; background: #000; }
.gallery-image-link img { display: block; width: 100%; height: auto; transition: transform 350ms ease; }
.gallery-feature .gallery-image-link { aspect-ratio: 1.14; border-radius: 2px; }
.gallery-feature .gallery-image-link img { height: 100%; object-fit: cover; object-position: center 52%; }
.gallery-enlarge { position: absolute; right: 14px; bottom: 14px; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #ffffff6b; background: #0c0e12d9; color: #fff; border-radius: 50%; font-size: 20px; }
.gallery-image-link:hover img { transform: scale(1.025); }
.gallery-feature figcaption { padding-top: 20px; }
.gallery-kicker { font-size: 11px; color: #a8aebb; letter-spacing: .09em; text-transform: uppercase; }
.gallery-feature h2 { font-size: 26px; font-weight: 550; margin-top: 4px; }
.gallery-feature .gallery-description, .gallery-feature .gallery-tags { display: none; }
.gallery-credit { margin-top: 16px; color: #89909d; font-size: 11px; line-height: 1.7; }
.gallery-credit a { text-decoration: underline; text-underline-offset: 3px; }
.gallery-collection { padding-block: 22px 88px; scroll-margin-top: 24px; }
.gallery-section-heading { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 36px; }
.gallery-section-heading .gallery-eyebrow { color: #939ba9; margin-bottom: 12px; }
.gallery-section-heading h2 { font-size: clamp(35px, 4vw, 58px); line-height: 1.05; font-weight: 500; }
.gallery-section-heading > p { max-width: 360px; color: #aeb3bf; font-size: 15px; }
.gallery-filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 30px; padding-block: 18px; border-block: 1px solid #2b303a; }
.gallery-filters, .gallery-mode-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery-page main button, .gallery-viewer button { font: inherit; cursor: pointer; }
.gallery-filters button, .gallery-mode-controls button { border: 1px solid transparent; padding: 9px 15px; border-radius: 24px; background: transparent; color: #acb3c1; font-size: 13px; }
.gallery-filters button:hover, .gallery-mode-controls button:hover { color: #fff; background: #20252e; }
.gallery-filters button[aria-pressed="true"], .gallery-mode-controls button[aria-pressed="true"] { background: #fff; color: #11141a; }
.gallery-count { font-size: 12px; color: #939ba9; white-space: nowrap; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 42px 26px; align-items: start; }
.gallery-card { min-width: 0; margin: 0; }
.gallery-card .gallery-image-link { aspect-ratio: 1; }
.gallery-card .gallery-image-link img { width: 100%; height: 100%; object-fit: contain; }
.gallery-card figcaption { padding-top: 20px; }
.gallery-card h3 { font-size: 23px; font-weight: 550; line-height: 1.2; margin-block: 8px 12px; }
.gallery-description { color: #b2b8c4; font-size: 13px; line-height: 1.75; }
.gallery-tags { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 16px; }
.gallery-tags li { color: #9ca7b6; font-size: 10px; letter-spacing: .04em; }
.gallery-tags li + li::before { content: "·"; margin-right: 12px; color: #ff7398; }
.gallery-card-wide { grid-column: span 2; }
.gallery-card-wide .gallery-image-link { aspect-ratio: 2.05; background: #000; }
.gallery-card-wide .gallery-image-link img { object-fit: contain; }
.gallery-grid.is-filtered .gallery-card-wide { grid-column: auto; }
.gallery-grid.is-filtered .gallery-card-wide .gallery-image-link { aspect-ratio: 1; }
.gallery-lab { background: #161a21; border-block: 1px solid #292f39; padding-block: 72px; }
.gallery-mode-controls { margin-bottom: 28px; }
.gallery-modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.gallery-mode { margin: 0; min-width: 0; }
.gallery-mode img { display: block; width: 100%; height: auto; background: #000; }
.gallery-mode h3 { font-size: 22px; font-weight: 500; margin-block: 18px 8px; }
.gallery-mode p { font-size: 13px; color: #b2b8c4; }
.gallery-mode code { display: inline-block; margin-top: 20px; color: #ff9bb6; font: 13px/1.5 ui-monospace, monospace; }
.gallery-modes.is-interactive { display: block; }
.gallery-modes.is-interactive .gallery-mode { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, .9fr); gap: clamp(32px, 7vw, 110px); align-items: center; }
.gallery-modes.is-interactive .gallery-mode img { max-width: 512px; margin-inline: auto; }
.gallery-modes.is-interactive .gallery-mode h3 { font-size: 35px; }
.gallery-modes.is-interactive .gallery-mode p { font-size: 17px; max-width: 340px; }
.gallery-lab-source { border-top: 1px solid #323844; padding-top: 24px; margin-top: 32px; color: #8e98a8; font-size: 12px; }
.gallery-lab-source a { text-decoration: underline; text-underline-offset: 4px; }
.gallery-community { padding-block: 88px 64px; }
.gallery-stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.gallery-stories > a { display: flex; flex-direction: column; min-width: 0; padding: 28px 0; border-block: 1px solid #333944; }
.gallery-stories .gallery-eyebrow { color: #a0a7b3; font-size: 10px; }
.gallery-stories h3 { font-size: 25px; line-height: 1.2; font-weight: 500; margin-block: 20px 12px; }
.gallery-stories p { font-size: 14px; color: #aeb3bf; margin-bottom: 30px; }
.gallery-story-link { font-size: 13px; margin-top: auto; color: #ff8bab; }
.gallery-submit { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding: 36px; margin-top: 48px; border-left: 3px solid #d0245e; background: #171b22; }
.gallery-submit h3 { font-size: 27px; font-weight: 500; }
.gallery-submit p { max-width: 640px; color: #aeb3bf; margin-top: 8px; font-size: 14px; }
.gallery-submit .gallery-action { flex-shrink: 0; font-size: 13px; }
.gallery-provenance { padding-block: 32px 56px; border-top: 1px solid #2b303a; color: #8993a3; font-size: 12px; }
.gallery-provenance h2 { font-size: 15px; font-weight: 500; margin-bottom: 12px; }
.gallery-provenance p { max-width: 840px; margin-bottom: 12px; }
.gallery-provenance a { text-decoration: underline; text-underline-offset: 4px; }
.gallery-footer { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px 24px; border-top: 1px solid #2b303a; padding-block: 24px 32px; color: #a8afbc; }
.gallery-footer > a { color: #fff; font-size: 20px; font-weight: 650; }
.gallery-footer p, .gallery-footer small { font-size: 11px; }
.gallery-footer small { margin-left: auto; }
.gallery-viewer { position: fixed; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 16px; margin: auto; width: min(1240px, calc(100% - 48px)); max-height: calc(100dvh - 48px); padding: 12px 30px 24px; border: 1px solid #404857; border-radius: 3px; background: #11151c; color: #e9eaed; overflow: hidden; }
.gallery-viewer::backdrop { background: #000d; }
.gallery-viewer:not([open]) { display: none; }
.gallery-page.has-gallery-viewer { overflow: hidden; }
.gallery-close { justify-self: end; min-height: 44px; border: 0; background: transparent; color: #fff; padding: 6px 12px; font-size: 13px !important; }
.gallery-close span { margin-left: 12px; font-size: 24px; vertical-align: middle; }
.gallery-viewer-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr); gap: 32px; align-items: center; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.gallery-viewer-image { display: block; width: 100%; height: min(66dvh, 800px); object-fit: contain; background: #000; }
.gallery-viewer-caption h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 550; line-height: 1.15; margin-block: 12px 20px; }
.gallery-viewer-caption .gallery-description { font-size: 15px; }
.gallery-viewer-caption a { color: #ff9bb6; text-decoration: underline; text-underline-offset: 4px; }
.gallery-original { display: inline-block; margin-top: 24px; font-size: 13px; }
.gallery-viewer-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #333c4a; padding-top: 16px; }
.gallery-viewer-nav button { min-height: 44px; padding: 8px 12px; border: 1px solid #3b4554; border-radius: 3px; background: #1b222e; color: #fff; font-size: 13px; }
.gallery-viewer-counter { font-size: 12px; line-height: 1.4; text-align: center; color: #aeb3bf; }
.gallery-viewer-announcement { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1050px) {
  .gallery-hero { grid-template-columns: 1fr 1.15fr; gap: 36px; }
  .gallery-intro h1 { font-size: 65px; }
  .gallery-deck { font-size: 18px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-card-wide { grid-column: auto; }
  .gallery-card-wide .gallery-image-link { aspect-ratio: 1; }
  .gallery-submit { padding: 28px; gap: 28px; }
}
@media (max-width: 760px) {
  .gallery-wrap { width: min(100% - 40px, 600px); }
  .gallery-hero { display: block; padding-top: 88px; padding-bottom: 56px; }
  .gallery-intro { padding-top: 8px; margin-bottom: 40px; }
  .gallery-intro h1 { font-size: clamp(64px, 13vw, 86px); }
  .gallery-intro .gallery-action { margin-bottom: 20px; }
  .gallery-intro .gallery-intro-note { display: none; }
  .gallery-feature .gallery-image-link { aspect-ratio: 1.16; }
  .gallery-section-heading { display: block; }
  .gallery-section-heading > p { margin-top: 20px; }
  .gallery-filter-bar { display: block; }
  .gallery-filters { gap: 4px; }
  .gallery-filters button { padding-inline: 12px; }
  .gallery-count { margin-top: 16px; }
  .gallery-grid { gap: 36px 20px; }
  .gallery-card h3 { font-size: 21px; }
  .gallery-card .gallery-description { font-size: 12px; }
  .gallery-card .gallery-kicker { font-size: 9px; }
  .gallery-lab { padding-block: 48px; }
  .gallery-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; }
  .gallery-modes.is-interactive .gallery-mode { display: block; }
  .gallery-modes.is-interactive .gallery-mode h3 { margin-top: 24px; font-size: 29px; }
  .gallery-community { padding-block: 56px 40px; }
  .gallery-stories { grid-template-columns: 1fr; gap: 0; }
  .gallery-stories > a + a { border-top: 0; }
  .gallery-stories h3 { margin-top: 12px; }
  .gallery-stories p { margin-bottom: 16px; }
  .gallery-submit { display: block; padding: 24px; }
  .gallery-submit .gallery-action { margin-top: 20px; }
  .gallery-viewer { width: calc(100% - 20px); max-height: calc(100dvh - 20px); padding: 12px 18px 18px; gap: 12px; }
  .gallery-viewer-layout { display: block; }
  .gallery-viewer-image { height: auto; max-height: 55dvh; }
  .gallery-viewer-caption { margin-top: 24px; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-card .gallery-description { font-size: 13px; }
  .gallery-card .gallery-kicker { font-size: 11px; }
  .gallery-footer small { margin-left: 0; width: 100%; }
}
@media (min-width: 761px) and (max-height: 600px) {
  .gallery-viewer-layout { align-items: start; }
  .gallery-viewer-image { position: sticky; top: 0; height: max(1px, calc(100dvh - 240px)); }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-image-link img { transition: none; }
  .gallery-image-link:hover img { transform: none; }
}
