/* A character's own gallery (design 141, plan 279). Page-scoped gx-* styles,
   loaded only by pages/gallery_exhibition.php, so the global build is untouched.
   Four looks the owner can pick: noir (default), ivory, salon, minimal. */

.gx {
  --gx-accent: #d9b85f;
  --gx-bg: #0b0b0d;
  --gx-bg-2: #121216;
  --gx-wall: radial-gradient(120% 70% at 50% 0%, #1b1a1f 0%, #0b0b0d 62%);
  --gx-text: #f4efe6;
  --gx-dim: #a8a196;
  --gx-faint: rgba(244, 239, 230, 0.12);
  --gx-line: rgba(244, 239, 230, 0.1);
  --gx-panel: rgba(22, 21, 26, 0.86);
  --gx-chip: rgba(255, 255, 255, 0.06);
  --gx-frame-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.85), 0 12px 24px -12px rgba(0, 0, 0, 0.6);
  --gx-mat: #f3eee4;
  --gx-on-accent: #141210;
  --gx-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Noto Serif SC", "Songti SC", Georgia, serif;
  --gx-sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", 'Inter', "Segoe UI", "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  --gx-radius: 14px;
  position: relative;
  background: var(--gx-bg);
  background-image: var(--gx-wall);
  color: var(--gx-text);
  font-family: var(--gx-sans);
  overflow-x: clip;
  isolation: isolate;
}
.gx--ivory {
  --gx-bg: #f5f1e9;
  --gx-bg-2: #ece6da;
  --gx-wall: radial-gradient(120% 70% at 50% 0%, #fbf8f2 0%, #f5f1e9 60%);
  --gx-text: #1f1b16;
  --gx-dim: #6b6358;
  --gx-faint: rgba(31, 27, 22, 0.1);
  --gx-line: rgba(31, 27, 22, 0.12);
  --gx-panel: rgba(251, 248, 242, 0.94);
  --gx-chip: rgba(31, 27, 22, 0.05);
  --gx-frame-shadow: 0 24px 40px -22px rgba(60, 45, 20, 0.45), 0 6px 14px -8px rgba(60, 45, 20, 0.3);
  --gx-on-accent: #1f1b16;
}
.gx--salon {
  --gx-bg: #0f1d18;
  --gx-bg-2: #142620;
  --gx-wall: radial-gradient(120% 70% at 50% 0%, #1d3a30 0%, #0f1d18 62%);
  --gx-text: #f2ead8;
  --gx-dim: #b2ab95;
  --gx-faint: rgba(242, 234, 216, 0.12);
  --gx-line: rgba(242, 234, 216, 0.12);
  --gx-panel: rgba(17, 33, 27, 0.92);
  --gx-chip: rgba(242, 234, 216, 0.07);
}
.gx--minimal {
  --gx-bg: #ffffff;
  --gx-bg-2: #f4f4f4;
  --gx-wall: none;
  --gx-text: #111111;
  --gx-dim: #666666;
  --gx-faint: rgba(0, 0, 0, 0.08);
  --gx-line: rgba(0, 0, 0, 0.1);
  --gx-panel: rgba(255, 255, 255, 0.96);
  --gx-chip: rgba(0, 0, 0, 0.04);
  --gx-frame-shadow: none;
  --gx-on-accent: #111;
}
.gx *, .gx *::before, .gx *::after { box-sizing: border-box; }
.gx img { display: block; max-width: 100%; }
.gx a { color: inherit; }
.gx-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.gx-wrap { width: min(1320px, 100% - 40px); margin: 0 auto; }
.gx a:focus-visible, .gx button:focus-visible, .gx input:focus-visible, .gx select:focus-visible, .gx textarea:focus-visible, .gx [tabindex]:focus-visible {
  outline: 3px solid var(--gx-accent); outline-offset: 3px; border-radius: 6px;
}

/* Buttons */
.gx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: 600 1rem/1 var(--gx-sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease, border-color .25s ease; }
.gx .gx-btn--primary { background: var(--gx-accent); color: var(--gx-on-accent); box-shadow: 0 10px 34px -10px color-mix(in srgb, var(--gx-accent) 70%, transparent); }
.gx-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 14px 40px -10px color-mix(in srgb, var(--gx-accent) 85%, transparent); }
.gx .gx-btn--ghost { background: transparent; color: var(--gx-text); border-color: var(--gx-line); }
.gx-btn--ghost:hover { border-color: var(--gx-accent); }
.gx-link { background: none; border: 0; padding: 10px 2px; color: var(--gx-text); font: 500 0.98rem/1.3 var(--gx-sans); text-decoration: underline; text-decoration-color: var(--gx-faint); text-underline-offset: 5px; cursor: pointer; }
.gx-link:hover { text-decoration-color: var(--gx-accent); }

/* Hero */
.gx-hero { position: relative; min-height: min(86svh, 900px); padding: calc(var(--navbar-height, 65px) + clamp(28px, 6vh, 72px)) 0 clamp(36px, 6vh, 72px); display: flex; align-items: center; }
.gx-hero-glow { position: absolute; inset: -10% -10% 0; z-index: -1; background-size: cover; background-position: center; filter: blur(80px) saturate(1.15); opacity: 0.32; transform: scale(1.15); }
.gx-hero-glow::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, var(--gx-bg) 92%); }
.gx--ivory .gx-hero-glow, .gx--minimal .gx-hero-glow { opacity: 0.16; }
.gx-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.gx-crumbs { display: flex; gap: 10px; font-size: 0.9rem; color: var(--gx-dim); margin-bottom: clamp(18px, 3vh, 34px); }
.gx-crumbs a { text-decoration: none; }
.gx-crumbs a:hover { color: var(--gx-text); }
.gx-eyebrow, .gx-kicker { margin: 0 0 14px; font: 600 0.82rem/1.2 var(--gx-sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gx-accent); }
.gx-title { margin: 0; font-family: var(--gx-serif); font-weight: 500; font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }
.gx-lede { margin: 22px 0 0; max-width: 46ch; font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.6; color: var(--gx-dim); }
.gx-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 30px 0 0; padding: 22px 0 0; list-style: none; border-top: 1px solid var(--gx-line); color: var(--gx-dim); font-size: 0.95rem; }
.gx-facts strong { display: block; font: 500 1.7rem/1.1 var(--gx-serif); color: var(--gx-text); }
.gx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 32px; }
.gx-actions--center { justify-content: center; }
.gx-artist { display: inline-flex; align-items: center; gap: 12px; margin-top: 34px; text-decoration: none; }
.gx-artist img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--gx-bg), 0 0 0 3px var(--gx-accent); }
.gx-artist-label { display: block; font-size: 0.78rem; color: var(--gx-dim); letter-spacing: 0.04em; }
.gx-artist strong { font-weight: 600; }
.gx-hero-art { margin: 0; justify-self: center; width: 100%; display: flex; flex-direction: column; align-items: center; }
.gx-hero-frame { display: block; max-height: min(72vh, 760px); max-width: 100%; border-radius: 4px; overflow: hidden; box-shadow: var(--gx-frame-shadow), 0 0 0 1px var(--gx-faint);
  transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.gx-hero-frame img { width: 100%; height: 100%; object-fit: contain; }
.gx-hero-frame:hover { transform: translateY(-4px); }
.gx-hero-art figcaption { margin-top: 18px; font-family: var(--gx-serif); color: var(--gx-dim); font-size: 1rem; }

/* Section heads */
.gx-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(22px, 4vh, 40px); }
.gx-h2 { margin: 0; font-family: var(--gx-serif); font-weight: 500; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; letter-spacing: -0.015em; }

/* Featured wall: a lit gallery wall inside the content column */
.gx-featured { padding: clamp(24px, 5vh, 64px) 0 clamp(40px, 8vh, 90px); }
.gx-round { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--gx-line); background: transparent; color: var(--gx-text); font-size: 1.5rem; line-height: 1; cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.gx-round:hover { border-color: var(--gx-accent); background: var(--gx-chip); }
.gx-hall-shell {
  --gx-hall-pad: clamp(24px, 4.5cqw, 56px);
  --gx-hall-h: clamp(250px, 48vh, 500px);
  position: relative; container-type: inline-size; overflow: hidden; isolation: isolate;
  padding: clamp(30px, 4.5cqw, 52px) 0 clamp(20px, 3cqw, 30px);
  border: 1px solid var(--gx-line); border-radius: 26px;
  background:
    radial-gradient(55% 60% at 50% -8%, color-mix(in srgb, var(--gx-accent) 13%, transparent), transparent 72%),
    linear-gradient(180deg, var(--gx-bg-2), var(--gx-bg) 78%);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--gx-text) 6%, transparent), 0 40px 80px -50px rgba(0, 0, 0, 0.7);
}
.gx-hall-shell::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; z-index: -1; pointer-events: none; background: linear-gradient(0deg, color-mix(in srgb, var(--gx-text) 4%, transparent), transparent); }
.gx-hall {
  --gx-fade-l: 0px; --gx-fade-r: 72px;
  position: relative; display: flex; align-items: flex-start; gap: clamp(22px, 3.4cqw, 48px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gx-hall-pad);
  padding: 8px var(--gx-hall-pad) 6px; scrollbar-width: none; overscroll-behavior-x: contain; outline: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gx-fade-l), #000 calc(100% - var(--gx-fade-r)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--gx-fade-l), #000 calc(100% - var(--gx-fade-r)), transparent 100%);
}
.gx-hall::-webkit-scrollbar { display: none; }
.gx-hall:focus-visible { box-shadow: inset 0 0 0 2px var(--gx-accent); border-radius: 18px; }
.gx-hall-shell:not(.is-start) .gx-hall { --gx-fade-l: 72px; }
.gx-hall-shell.is-end .gx-hall, .gx-hall-shell.is-static .gx-hall { --gx-fade-r: 0px; }
.gx-hall-shell.is-static .gx-hall { justify-content: center; }
.gx-hall-item { margin: 0; flex: 0 0 auto; scroll-snap-align: start; display: flex; flex-direction: column; }
.gx-hall-frame {
  --r: 1; display: block;
  height: min(var(--gx-hall-h), calc(68cqw / var(--r)));
  width: calc(min(var(--gx-hall-h), calc(68cqw / var(--r))) * var(--r));
  border-radius: 4px; overflow: hidden;
  box-shadow: var(--gx-frame-shadow), 0 0 0 1px var(--gx-faint);
  transition: transform .6s cubic-bezier(.2, .8, .2, 1), box-shadow .6s ease;
}
.gx-hall-frame img { height: 100%; width: 100%; object-fit: cover; }
.gx-hall-frame:hover, .gx-hall-frame:focus-visible { transform: translateY(-6px); box-shadow: var(--gx-frame-shadow), 0 0 0 1px color-mix(in srgb, var(--gx-accent) 55%, transparent); }
.gx-hall-item figcaption { position: relative; margin-top: 18px; padding-left: 34px; width: 0; min-width: 100%; box-sizing: border-box; }
.gx-hall-no { position: absolute; left: 0; top: 0.28em; font: 600 0.72rem/1 var(--gx-sans); letter-spacing: 0.08em; color: var(--gx-accent); font-variant-numeric: tabular-nums; }
.gx-hall-title { display: block; font: 500 1.12rem/1.3 var(--gx-serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-hall-meta { display: block; margin-top: 4px; font-size: 0.86rem; color: var(--gx-dim); }
.gx-hall-arrow {
  position: absolute; z-index: 2; top: calc(clamp(30px, 4.5cqw, 52px) + 8px + min(var(--gx-hall-h), 68cqw) / 2); transform: translateY(-50%);
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--gx-line); background: var(--gx-panel); color: var(--gx-text);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 1.7rem; line-height: 1; cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  transition: opacity .25s ease, border-color .2s ease, transform .2s ease;
}
.gx-hall-arrow span { margin-top: -3px; }
.gx-hall-arrow--prev { left: 14px; }
.gx-hall-arrow--next { right: 14px; }
.gx-hall-arrow:hover { border-color: var(--gx-accent); }
.gx-hall-arrow:focus-visible { outline: 2px solid var(--gx-accent); outline-offset: 3px; }
.gx-hall-shell.is-start .gx-hall-arrow--prev, .gx-hall-shell.is-end .gx-hall-arrow--next, .gx-hall-shell.is-static .gx-hall-arrow { opacity: 0; pointer-events: none; }
.gx-hall-foot { display: flex; align-items: center; gap: 18px; padding: clamp(16px, 2.4cqw, 24px) var(--gx-hall-pad) 0; }
.gx-hall-shell.is-static .gx-hall-foot { display: none; }
.gx-hall-count { font-size: 0.8rem; letter-spacing: 0.06em; color: var(--gx-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gx-hall-count b { color: var(--gx-text); font-weight: 600; }
.gx-hall-track { position: relative; flex: 1; height: 2px; border-radius: 2px; background: var(--gx-line); overflow: hidden; }
.gx-hall-bar { position: absolute; inset: 0 auto 0 0; width: 20%; border-radius: 2px; background: var(--gx-accent); transition: transform .15s linear, width .2s ease; }

/* Collection */
.gx-collection { padding: clamp(40px, 8vh, 90px) 0 clamp(60px, 10vh, 120px); }
.gx-toolbar { position: sticky; top: calc(var(--navbar-height, 65px) + 10px); z-index: 5; display: flex; gap: 12px; padding: 10px; border-radius: 999px; background: var(--gx-panel); border: 1px solid var(--gx-line);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.6); }
.gx-search { position: relative; flex: 1; display: flex; align-items: center; }
.gx-search svg { position: absolute; left: 16px; width: 20px; height: 20px; fill: none; stroke: var(--gx-dim); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.gx-search input { width: 100%; min-height: 48px; padding: 0 44px 0 48px; border-radius: 999px; border: 0; background: transparent; color: var(--gx-text); font: 400 1.05rem/1.2 var(--gx-sans); }
.gx-search input::placeholder { color: var(--gx-dim); }
.gx-search input:focus { outline: none; }
.gx-search:focus-within { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--gx-accent) 60%, transparent); border-radius: 999px; }
.gx-search kbd { position: absolute; right: 14px; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--gx-line); color: var(--gx-dim); font: 500 0.78rem/1.4 var(--gx-sans); }
.gx-sort select { min-height: 48px; padding: 0 38px 0 18px; border-radius: 999px; border: 1px solid var(--gx-line); background: var(--gx-chip); color: var(--gx-text); font: 500 0.95rem/1 var(--gx-sans); cursor: pointer;
  appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gx-dim) 50%), linear-gradient(135deg, var(--gx-dim) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.gx-sort select option { color: #111; }
.gx-filters { display: grid; gap: 14px; margin: 22px 0 8px; }
.gx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gx-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--gx-line); background: var(--gx-chip); color: var(--gx-text); font: 500 0.92rem/1 var(--gx-sans); cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.gx-chip span { color: var(--gx-dim); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.gx-chip:hover { border-color: color-mix(in srgb, var(--gx-accent) 60%, var(--gx-line)); }
.gx-chip[aria-pressed="true"] { background: var(--gx-text); color: var(--gx-bg); border-color: var(--gx-text); }
.gx-chip[aria-pressed="true"] span { color: inherit; opacity: 0.7; }
.gx-chip--available::before, .gx-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.gx-chip--available::before { background: #5fd38d; }
.gx-chip--soft { font-family: var(--gx-serif); font-size: 0.98rem; }
.gx-years { display: flex; align-items: flex-end; gap: 4px; height: 64px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.gx-year { flex: 1 0 34px; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 6px; height: 100%; padding: 0; border: 0; background: none; color: var(--gx-dim); cursor: pointer; }
.gx-year-bar { display: block; height: var(--h); min-height: 4px; border-radius: 3px 3px 0 0; background: color-mix(in srgb, var(--gx-text) 22%, transparent); transition: background-color .2s ease; }
.gx-year-label { font-size: 0.72rem; font-variant-numeric: tabular-nums; text-align: center; }
.gx-year:hover .gx-year-bar { background: color-mix(in srgb, var(--gx-accent) 70%, transparent); }
.gx-year[aria-pressed="true"] .gx-year-bar { background: var(--gx-accent); }
.gx-year[aria-pressed="true"] .gx-year-label { color: var(--gx-text); font-weight: 600; }
.gx-count { margin: 18px 0 22px; color: var(--gx-dim); font-size: 0.95rem; }

/* The wall: masonry columns */
.gx-grid { columns: 4 260px; column-gap: clamp(18px, 2.4vw, 34px); }
.gx-card { position: relative; break-inside: avoid; margin: 0 0 clamp(26px, 3.2vw, 44px); animation: gx-in .7s cubic-bezier(.2, .8, .2, 1) both; }
.gx-card[hidden] { display: none; }
@keyframes gx-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.gx-card-link { display: block; text-decoration: none; }
.gx-frame { display: block; position: relative; border-radius: 3px; overflow: hidden; background: var(--gx-bg-2); box-shadow: var(--gx-frame-shadow), 0 0 0 1px var(--gx-faint); transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s ease; }
.gx-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.gx-card-link:hover .gx-frame { transform: translateY(-4px); }
.gx-card-link:hover .gx-frame img { transform: scale(1.025); }
.gx-frame--text { aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; font: 500 1.4rem/1.25 var(--gx-serif); background: linear-gradient(160deg, var(--gx-bg-2), var(--gx-bg)); }
.gx-card-text { display: block; padding: 14px 2px 0; }
.gx-card-title { display: block; font: 500 1.12rem/1.3 var(--gx-serif); }
.gx-card-meta { display: block; margin-top: 5px; font-size: 0.84rem; line-height: 1.45; color: var(--gx-dim); }
.gx-dot { display: inline-flex; align-items: center; gap: 6px; margin: 8px 2px 0; font-size: 0.78rem; letter-spacing: 0.02em; color: var(--gx-dim); }
.gx-dot--available { color: #5fd38d; }
.gx--ivory .gx-dot--available, .gx--minimal .gx-dot--available { color: #1d8a4c; }
.gx-dot--reserved { color: var(--gx-accent); }
.gx-card mark, .gx-viewer mark { background: color-mix(in srgb, var(--gx-accent) 38%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }
.gx-empty { padding: 60px 20px; text-align: center; color: var(--gx-dim); }
.gx-empty-title { margin: 0 0 8px; font: 500 1.6rem/1.2 var(--gx-serif); color: var(--gx-text); }

/* Ask band */
.gx-ask { padding: clamp(70px, 12vh, 140px) 0; border-top: 1px solid var(--gx-line); background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--gx-accent) 8%, transparent)); }
.gx-ask-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.gx-ask-portrait { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 26px; box-shadow: 0 0 0 3px var(--gx-bg), 0 0 0 4px var(--gx-accent), 0 20px 50px -20px var(--gx-accent); }
.gx-ask-sub { margin: 14px 0 30px; max-width: 52ch; color: var(--gx-dim); font-size: 1.08rem; line-height: 1.55; }
.gx-ask-list { display: grid; gap: 12px; width: min(680px, 100%); }
.gx-ask-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-radius: var(--gx-radius); border: 1px solid var(--gx-line); background: var(--gx-chip); text-decoration: none; text-align: left; font: 500 1.08rem/1.4 var(--gx-serif); transition: border-color .2s ease, transform .2s ease; }
.gx-ask-q span { color: var(--gx-accent); font-family: var(--gx-sans); }
.gx-ask-q:hover { border-color: var(--gx-accent); transform: translateX(3px); }

/* Viewer */
.gx-viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: color-mix(in srgb, var(--gx-bg) 96%, black); color: var(--gx-text); display: none; grid-template-columns: minmax(0, 1fr) min(440px, 38vw); }
.gx-viewer[open] { display: grid; animation: gx-fade .3s ease both; }
.gx-viewer::backdrop { background: rgba(0, 0, 0, 0.7); }
@keyframes gx-fade { from { opacity: 0; } to { opacity: 1; } }
.gx-viewer-stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 80px 28px; min-height: 0; }
.gx-viewer-figure { margin: 0; flex: 1; min-height: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gx-viewer-figure img { max-width: 100%; max-height: calc(100dvh - 160px); object-fit: contain; box-shadow: var(--gx-frame-shadow); border-radius: 2px; animation: gx-fade .4s ease both; }
.gx-viewer-figure figcaption { margin-top: 14px; font-size: 0.86rem; color: var(--gx-dim); min-height: 1.2em; text-align: center; }
.gx-viewer-nav { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; border: 1px solid var(--gx-line); background: var(--gx-panel); color: var(--gx-text); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.gx-viewer-nav:hover { border-color: var(--gx-accent); }
.gx-viewer-prev { left: 16px; }
.gx-viewer-next { right: 16px; }
.gx-viewer-thumbs { display: flex; gap: 8px; margin-top: 12px; }
.gx-viewer-thumbs button { width: 54px; height: 54px; padding: 0; border-radius: 6px; overflow: hidden; border: 2px solid transparent; background: none; cursor: pointer; opacity: 0.6; }
.gx-viewer-thumbs button[aria-current="true"] { border-color: var(--gx-accent); opacity: 1; }
.gx-viewer-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gx-viewer-panel { position: relative; overflow-y: auto; padding: 56px 34px 34px; border-left: 1px solid var(--gx-line); background: var(--gx-panel); }
.gx-viewer-close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--gx-line); background: transparent; color: var(--gx-text); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.gx-viewer-close:hover { border-color: var(--gx-accent); }
.gx-viewer-title { margin: 0; font: 500 clamp(1.7rem, 2.4vw, 2.3rem)/1.12 var(--gx-serif); letter-spacing: -0.01em; }
.gx-viewer-credit { margin: 8px 0 0; color: var(--gx-dim); }
.gx-viewer-facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 24px 0; padding: 20px 0; border-top: 1px solid var(--gx-line); border-bottom: 1px solid var(--gx-line); font-size: 0.94rem; }
.gx-viewer-facts dt { color: var(--gx-dim); }
.gx-viewer-facts dd { margin: 0; line-height: 1.45; }
.gx-viewer-story { font: 400 1.04rem/1.7 var(--gx-serif); }
.gx-viewer-story p { margin: 0 0 1em; }
.gx-viewer-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0; }
.gx-viewer-tags button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--gx-line); background: var(--gx-chip); color: var(--gx-dim); font: 500 0.82rem/1 var(--gx-sans); cursor: pointer; }
.gx-viewer-tags button:hover { color: var(--gx-text); border-color: var(--gx-accent); }
.gx-viewer-actions { position: sticky; bottom: -34px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 -34px -34px; padding: 18px 34px 26px; background: linear-gradient(180deg, transparent, var(--gx-panel) 30%); }

/* Owner curation */
.gx-curate-fab { position: fixed; right: 22px; bottom: 22px; z-index: 30; display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--gx-accent); color: var(--gx-on-accent); font: 600 0.98rem/1 var(--gx-sans); cursor: pointer; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.7); }
.gx-curate { position: fixed; top: calc(var(--navbar-height, 65px) + 10px); right: 10px; bottom: 10px; z-index: 40; width: min(420px, calc(100vw - 20px)); overflow-y: auto; padding: 22px 24px; border-radius: 18px; border: 1px solid var(--gx-line); background: var(--gx-panel); color: var(--gx-text);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8); }
.gx-curate[hidden] { display: none; }
.gx-curate-head { display: flex; align-items: center; justify-content: space-between; }
.gx-curate-head h2 { margin: 0; font: 500 1.6rem/1.2 var(--gx-serif); }
.gx-curate-head .gx-viewer-close { position: static; }
.gx-curate h3 { margin: 22px 0 10px; font: 600 0.8rem/1.2 var(--gx-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gx-accent); }
.gx-curate-help { margin: 6px 0 0; color: var(--gx-dim); font-size: 0.9rem; line-height: 1.5; }
.gx-themes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gx-theme-swatch { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 1px solid var(--gx-line); background: transparent; color: var(--gx-text); font: 500 0.92rem/1 var(--gx-sans); cursor: pointer; }
.gx-theme-swatch span { width: 28px; height: 28px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(128, 128, 128, 0.4); }
.gx-theme-swatch--noir span { background: linear-gradient(135deg, #1b1a1f, #0b0b0d 60%, #d9b85f 61%); }
.gx-theme-swatch--ivory span { background: linear-gradient(135deg, #fbf8f2, #ece6da 60%, #b38a2e 61%); }
.gx-theme-swatch--salon span { background: linear-gradient(135deg, #1d3a30, #0f1d18 60%, #d9b85f 61%); }
.gx-theme-swatch--minimal span { background: linear-gradient(135deg, #fff, #f2f2f2 60%, #111 61%); }
.gx-theme-swatch[aria-checked="true"] { border-color: var(--gx-accent); box-shadow: inset 0 0 0 1px var(--gx-accent); }
.gx-curate-field { display: grid; gap: 6px; margin-top: 14px; font-size: 0.88rem; color: var(--gx-dim); }
.gx-curate-field input[type="text"], .gx-curate-field textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--gx-line); background: var(--gx-chip); color: var(--gx-text); font: 400 0.98rem/1.4 var(--gx-sans); }
.gx-curate-field input[type="color"] { width: 64px; height: 36px; padding: 0; border: 1px solid var(--gx-line); border-radius: 8px; background: none; cursor: pointer; }
.gx-curate-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; counter-reset: gxc; }
.gx-curate-list li { display: grid; grid-template-columns: 22px 46px 1fr auto; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; border: 1px solid var(--gx-line); background: var(--gx-chip); counter-increment: gxc; }
.gx-curate-list li::before { content: counter(gxc); text-align: center; color: var(--gx-dim); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.gx-curate-list img { width: 46px; height: 46px; border-radius: 6px; object-fit: cover; }
.gx-curate-list .gx-ctitle { font: 500 0.95rem/1.25 var(--gx-serif); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gx-curate-list .gx-ctitle small { display: block; color: var(--gx-accent); font: 600 0.7rem/1.4 var(--gx-sans); letter-spacing: 0.1em; text-transform: uppercase; }
.gx-curate-list .gx-cbtns { display: flex; gap: 2px; }
.gx-curate-list .gx-cbtns button { width: 30px; height: 30px; border-radius: 8px; border: 0; background: transparent; color: var(--gx-text); cursor: pointer; font-size: 1rem; }
.gx-curate-list .gx-cbtns button:hover { background: var(--gx-chip); }
.gx-curate-list .gx-cbtns button:disabled { opacity: 0.25; cursor: default; }
.gx-curate-foot { position: sticky; bottom: -22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px -24px -22px; padding: 16px 24px 22px; background: linear-gradient(180deg, transparent, var(--gx-panel) 35%); }
.gx-curate-status { min-height: 1.2em; margin: 8px 0 0; font-size: 0.88rem; color: var(--gx-dim); }
.gx.is-curating .gx-star { display: inline-flex; }
.gx-star { position: absolute; top: 10px; right: 10px; z-index: 2; display: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 1.15rem; cursor: pointer; backdrop-filter: blur(6px); }
.gx-star[aria-pressed="true"] { background: var(--gx-accent); color: var(--gx-on-accent); }

/* One work's page */
.gx-art { padding-bottom: clamp(60px, 10vh, 120px); }
.gx-art-top { padding-top: calc(var(--navbar-height, 65px) + 26px); }
.gx-art-top .gx-crumbs { flex-wrap: wrap; margin-bottom: 18px; }
.gx-art-top .gx-crumbs span[aria-current] { color: var(--gx-text); }
.gx-art-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.gx-art-stage { position: sticky; top: calc(var(--navbar-height, 65px) + 20px); display: flex; flex-direction: column; align-items: center; padding: clamp(20px, 4vw, 56px); border-radius: 6px; background: radial-gradient(90% 80% at 50% 30%, color-mix(in srgb, var(--gx-text) 6%, transparent), transparent 70%); }
.gx-art-figure { margin: 0; display: flex; flex-direction: column; align-items: center; width: 100%; }
.gx-art-frame { display: block; max-width: 100%; max-height: calc(100vh - var(--navbar-height, 65px) - 170px); box-shadow: var(--gx-frame-shadow), 0 0 0 1px var(--gx-faint); border-radius: 2px; overflow: hidden; cursor: zoom-in; }
.gx-art-frame img { width: 100%; height: 100%; object-fit: contain; }
.gx-art-figure figcaption { margin-top: 12px; color: var(--gx-dim); font-size: 0.88rem; }
.gx-art-thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.gx-art-thumbs button { width: 62px; height: 62px; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: none; cursor: pointer; opacity: 0.65; }
.gx-art-thumbs button[aria-current="true"] { border-color: var(--gx-accent); opacity: 1; }
.gx-art-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gx-art-textframe { width: 100%; }
.gx-art-label { padding-top: 10px; }
.gx-art-title { margin: 0; font: 500 clamp(2.2rem, 4vw, 3.6rem)/1.05 var(--gx-serif); letter-spacing: -0.015em; text-wrap: balance; }
.gx-art-credit { margin: 12px 0 0; font-size: 1.08rem; color: var(--gx-dim); }
.gx-art-credit a { text-decoration: none; border-bottom: 1px solid var(--gx-faint); }
.gx-art-credit a:hover { border-color: var(--gx-accent); }
.gx-art-status { font-size: 0.95rem; margin-top: 14px; }
.gx-art-actions { margin: 6px 0 28px; }
.gx-art-story { font-size: 1.08rem; }
.gx-viewer-tags a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--gx-line); background: var(--gx-chip); color: var(--gx-dim); font: 500 0.82rem/1 var(--gx-sans); text-decoration: none; }
.gx-viewer-tags a:hover { color: var(--gx-text); border-color: var(--gx-accent); }
.gx-art-share { margin-top: 24px; }
.gx-art-pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; margin-top: clamp(50px, 8vh, 90px); padding: 26px 0; border-top: 1px solid var(--gx-line); border-bottom: 1px solid var(--gx-line); }
.gx-art-pager a { text-decoration: none; }
.gx-art-pager a span { display: block; font-size: 0.82rem; color: var(--gx-dim); letter-spacing: 0.04em; }
.gx-art-pager a strong { display: block; margin-top: 4px; font: 500 1.15rem/1.3 var(--gx-serif); }
.gx-art-pager a[rel="next"] { text-align: right; }
.gx-art-pager a:hover strong { color: var(--gx-accent); }
.gx-art-pager-all { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--gx-line); font-size: 0.92rem; }
.gx-art-related { margin-top: clamp(50px, 8vh, 90px); }
.gx-grid--related { columns: 4 220px; }

/* Phones and tablets */
@media (max-width: 900px) {
  .gx-art-grid { grid-template-columns: 1fr; }
  .gx-art-stage { position: static; padding: 8px 0; }
  .gx-art-frame { max-height: 70vh; }
  .gx-art-pager { grid-template-columns: 1fr 1fr; }
  .gx-art-pager-all { display: none; }
  .gx-hero { min-height: 0; }
  .gx-hero-grid { grid-template-columns: 1fr; }
  .gx-hero-art { order: -1; }
  .gx-hero-frame { max-height: 56vh; }
  .gx-viewer { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow-y: auto; }
  .gx-viewer[open] { display: block; }
  .gx-viewer-stage { padding: 56px 12px 12px; min-height: 52dvh; }
  .gx-viewer-figure img { max-height: 58dvh; }
  .gx-viewer-nav { top: auto; bottom: 18px; width: 44px; height: 44px; }
  .gx-viewer-panel { border-left: 0; border-top: 1px solid var(--gx-line); padding: 28px 20px 24px; overflow: visible; }
  .gx-viewer-actions { margin: 0 -20px -24px; padding: 16px 20px 22px; bottom: 0; }
  .gx-viewer-close { position: fixed; top: 10px; right: 10px; z-index: 3; }
  .gx .gx-viewer .gx-viewer-close { background: var(--gx-panel) !important; color: var(--gx-text); }
}
@media (max-width: 640px) {
  .gx-wrap { width: calc(100% - 32px); }
  .gx-grid { columns: 2; column-gap: 14px; }
  .gx-card { margin-bottom: 22px; }
  .gx-card-title { font-size: 1rem; }
  .gx-card-meta { display: none; }
  .gx-toolbar { flex-direction: column; border-radius: 22px; gap: 6px; }
  .gx-search kbd { display: none; }
  .gx-sort select { width: 100%; }
  .gx-hall-shell { --gx-hall-h: min(44vh, 340px); --gx-hall-pad: 18px; margin: 0 -16px; border-radius: 0; border-left: 0; border-right: 0; }
  .gx-hall-frame { height: min(var(--gx-hall-h), calc(80cqw / var(--r))); width: calc(min(var(--gx-hall-h), calc(80cqw / var(--r))) * var(--r)); }
  .gx-hall-arrow { display: none; }
  .gx-hall-shell:not(.is-start) .gx-hall { --gx-fade-l: 28px; }
  .gx-hall { --gx-fade-r: 36px; }
  .gx-hero { padding-bottom: 24px; }
  .gx-featured { padding: 40px 0 0; }
  .gx-collection { padding-top: 32px; }
  .gx-chips--series { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .gx-chips--series::-webkit-scrollbar { display: none; }
  .gx-chips--series .gx-chip { flex: 0 0 auto; }
  .gx-facts strong { font-size: 1.4rem; }
  .gx-curate-fab { right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .gx *, .gx *::before, .gx *::after { animation: none !important; transition: none !important; }
  .gx-hall { scroll-behavior: auto; }
}
