/* v82 Gallery Discovery — same forest shell, spacing and controls as PixelDeck home. */
.gallery-discovery-page { min-height: 100dvh; overflow-x: hidden; }
.gallery-discovery-page .gallery-noise { display: none; }
.gallery-discovery-page .gallery-topbar { min-height: 72px; padding: 10px clamp(14px, 3vw, 42px); }
.gallery-discovery-page .gallery-brand img { width: 46px; height: 46px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.gallery-discovery-page .gallery-brand span { color: var(--pd-text); font-family: inherit; font-size: 15px; letter-spacing: -.02em; text-transform: none; }
.gallery-discovery-page .gallery-topbar nav { gap: 5px; }
.gallery-discovery-page .gallery-topbar nav a { color: var(--pd-muted); }

.gallery-discovery-page main { width: min(1480px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 72px; }
.gallery-discovery-page .discovery-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 270px); gap: 24px; align-items: center; min-height: 330px; margin-bottom: 22px; padding: clamp(26px, 5vw, 58px); border: 1px solid var(--pd-border-soft); border-radius: 18px; background: linear-gradient(135deg, rgba(155, 230, 77, .09), rgba(93, 247, 212, .04) 45%, rgba(5, 22, 12, .98)); box-shadow: var(--pd-shadow), inset 0 1px 0 rgba(255,255,255,.035); overflow: hidden; }
.gallery-discovery-page .discovery-hero::before { content: ""; position: absolute; width: 260px; height: 260px; right: 4%; border: 1px solid rgba(155,230,77,.14); transform: rotate(12deg); box-shadow: inset 0 0 80px rgba(93,247,212,.04); pointer-events: none; }
.gallery-discovery-page .eyebrow { color: var(--pd-accent); font-family: inherit; font-size: 11px; font-weight: 950; letter-spacing: .14em; }
.gallery-discovery-page .discovery-hero h1 { max-width: 840px; margin: 8px 0 16px; color: var(--pd-text); font-family: inherit; font-size: clamp(2.45rem, 7vw, 5.8rem); font-weight: 950; line-height: .9; letter-spacing: -.065em; }
.gallery-discovery-page .discovery-hero h1 em { color: var(--pd-accent); font-family: inherit; font-style: normal; }
.gallery-discovery-page .discovery-hero p:not(.eyebrow) { max-width: 760px; color: var(--pd-muted); font-size: 16px; line-height: 1.6; }
.gallery-discovery-page .district-orb { width: min(230px, 100%); aspect-ratio: 1; justify-self: end; border: 1px solid rgba(155,230,77,.28); border-radius: 20px; background: linear-gradient(145deg, rgba(155,230,77,.16), rgba(93,247,212,.07)), #06170c; box-shadow: 8px 8px 0 rgba(0,0,0,.35); }
.gallery-discovery-page .district-orb::before, .gallery-discovery-page .district-orb::after { display: none; }
.gallery-discovery-page .district-orb span { color: var(--pd-accent); text-shadow: 0 0 26px rgba(155,230,77,.28); }
.gallery-discovery-page .district-orb small { color: var(--pd-muted); font-family: inherit; }

.gallery-discovery-page .invitation-shelf,
.gallery-discovery-page .discovery-tools { border: 1px solid var(--pd-border-soft); border-radius: var(--pd-radius); background: rgba(7, 27, 16, .92); box-shadow: 0 14px 42px rgba(0,0,0,.16); }
.gallery-discovery-page .invitation-shelf { margin: 0 0 18px; }
.gallery-discovery-page .discovery-tools { position: sticky; top: 80px; z-index: 20; display: grid; grid-template-columns: minmax(220px, 1fr) minmax(150px, 220px) minmax(0, auto); gap: 10px; align-items: center; margin: 0 0 26px; padding: 12px; backdrop-filter: blur(16px); }
.gallery-discovery-page .search-box,
.gallery-discovery-page .discovery-tools select { min-height: 46px; border: 1px solid var(--pd-border); border-radius: 10px; color: var(--pd-text); background: #041108; box-shadow: none; }
.gallery-discovery-page .search-box:focus-within { border-color: var(--pd-accent); box-shadow: 0 0 0 3px rgba(155,230,77,.12); }
.gallery-discovery-page .search-box input { color: var(--pd-text); font-family: inherit; }
.gallery-discovery-page .sort-pills { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 1px; scrollbar-width: none; }
.gallery-discovery-page .sort-pills::-webkit-scrollbar { display: none; }
.gallery-discovery-page .sort-pills button { flex: 0 0 auto; min-height: 42px; border: 1px solid transparent; border-radius: 9px; color: var(--pd-muted); background: transparent; font-family: inherit; font-weight: 850; }
.gallery-discovery-page .sort-pills button:hover,
.gallery-discovery-page .sort-pills button.active { color: var(--pd-accent); border-color: var(--pd-border); background: rgba(155,230,77,.09); box-shadow: none; }

.gallery-discovery-page .gallery-results-head { margin: 0 0 15px; border: 0; }
.gallery-discovery-page .gallery-results-head h2 { color: var(--pd-text); font-family: inherit; font-size: clamp(1.55rem, 4vw, 2.4rem); letter-spacing: -.035em; }
.gallery-discovery-page #resultCount { color: var(--pd-muted); font-family: inherit; }
.gallery-discovery-page .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.gallery-discovery-page .exhibition-card { border: 1px solid var(--pd-border-soft); border-radius: var(--pd-radius); background: linear-gradient(180deg, rgba(10,36,21,.96), rgba(5,22,12,.98)); box-shadow: 0 16px 44px rgba(0,0,0,.2); overflow: hidden; transform: none; }
.gallery-discovery-page .exhibition-card:hover { border-color: rgba(155,230,77,.55); transform: translateY(-2px); box-shadow: 0 22px 58px rgba(0,0,0,.3), 0 0 0 1px rgba(155,230,77,.08); }
.gallery-discovery-page .exhibition-cover { aspect-ratio: 16 / 10; border-bottom: 1px solid var(--pd-border-soft); background: #020904; }
.gallery-discovery-page .exhibition-cover img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.gallery-discovery-page .cover-placeholder { color: var(--pd-accent); background: radial-gradient(circle, rgba(155,230,77,.14), transparent 60%), #031008; }
.gallery-discovery-page .exhibition-badges span { border: 1px solid rgba(155,230,77,.3); border-radius: 999px; color: var(--pd-text); background: rgba(4,17,8,.88); font-family: inherit; }
.gallery-discovery-page .exhibition-badges .live { color: #061108; border-color: var(--pd-accent); background: var(--pd-accent); }
.gallery-discovery-page .exhibition-body { padding: 15px; }
.gallery-discovery-page .exhibition-author { color: var(--pd-muted); font-family: inherit; }
.gallery-discovery-page .exhibition-author img,
.gallery-discovery-page .avatar-fallback { border: 1px solid var(--pd-border); border-radius: 9px; background: var(--pd-panel); }
.gallery-discovery-page .exhibition-body h3 { margin: 12px 0 7px; color: var(--pd-text); font-family: inherit; font-size: 1.3rem; }
.gallery-discovery-page .exhibition-body h3 a { color: inherit; }
.gallery-discovery-page .exhibition-body > p { min-height: 44px; color: var(--pd-muted); line-height: 1.5; }
.gallery-discovery-page .tag-row span { color: var(--pd-accent-2); border: 1px solid rgba(93,247,212,.18); border-radius: 999px; background: rgba(93,247,212,.06); font-family: inherit; }
.gallery-discovery-page .exhibition-meta { border-block: 1px solid var(--pd-border-soft); color: var(--pd-muted); font-family: inherit; }
.gallery-discovery-page .exhibition-meta b { color: var(--pd-text); }
.gallery-discovery-page .exhibition-actions a { min-height: 42px; border: 1px solid var(--pd-border); border-radius: 9px; color: var(--pd-text); background: rgba(155,230,77,.06); font-family: inherit; font-weight: 900; }
.gallery-discovery-page .exhibition-actions a.enter { color: #061108; border-color: #caff82; background: linear-gradient(135deg, var(--pd-accent), #caff82); }
.gallery-discovery-page .gallery-empty { grid-column: 1 / -1; min-height: 230px; border: 1px dashed var(--pd-border); border-radius: var(--pd-radius); color: var(--pd-muted); background: rgba(7,27,16,.65); }
.gallery-discovery-page .gallery-toast { border: 1px solid var(--pd-border); border-radius: 10px; color: var(--pd-text); background: rgba(4,17,8,.94); box-shadow: var(--pd-shadow); font-family: inherit; }

@media (max-width: 1120px) {
  .gallery-discovery-page .discovery-tools { grid-template-columns: minmax(220px, 1fr) minmax(150px, 210px); }
  .gallery-discovery-page .sort-pills { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .gallery-discovery-page main { width: min(100% - 20px, 1480px); padding-top: 14px; }
  .gallery-discovery-page .discovery-hero { grid-template-columns: 1fr; min-height: 0; padding: 24px 18px; }
  .gallery-discovery-page .district-orb { width: 150px; justify-self: start; }
  .gallery-discovery-page .discovery-tools { top: 0; grid-template-columns: 1fr; margin-inline: -10px; border-radius: 0; }
  .gallery-discovery-page .sort-pills { grid-column: auto; }
  .gallery-discovery-page .gallery-grid { grid-template-columns: 1fr; }
  .gallery-discovery-page .gallery-results-head { align-items: flex-end; }
}
