/* Homepage only: allow scrolling beyond the original one-screen hero. */
html:has(body.landing), body.landing { height: auto; overflow-x: hidden; overflow-y: auto; }
html:has(body.landing) { scroll-behavior: smooth; }
.landing .landing-page { height: auto; min-height: 100dvh; overflow: visible; }
.landing .landing-wrap { flex: none; min-height: calc(100dvh - 170px); }
.gallery-discover { display: flex; justify-content: center; padding: 8px 20px 24px; }
.gallery-discover-link { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 140px; padding: 8px 20px; color: #f1d39a; text-decoration: none; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 12px; background: rgba(8,15,29,.85); }
.gallery-discover-link:hover { border-color: #f1d39a; background: #17263e; }
.gallery-discover-link:focus-visible { outline: 3px solid #eac986; outline-offset: 4px; }
.gallery-discover-link svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.home-gallery { padding: 56px 6vw 64px; background: linear-gradient(180deg, rgba(4,8,16,.88), #080f1d); border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.gallery-heading { max-width: 760px; margin: 0 auto 30px; text-align: center; }
.gallery-heading h2 { font: 700 clamp(24px, 4vw, 38px)/1.25 'Orbitron', sans-serif; color: var(--gold, #eac986); margin: 0 0 14px; }
.gallery-heading p { color: var(--muted); line-height: 1.6; margin: 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: 1440px; margin: auto; }
.gallery-card { display: block; min-width: 0; color: var(--text); text-decoration: none; background: #0d182b; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: border-color .2s, transform .2s; }
.gallery-card:hover { border-color: var(--gold, #eac986); transform: translateY(-3px); }
.gallery-card:focus-visible, .gallery-viewer button:focus-visible { outline: 3px solid #eac986; outline-offset: 4px; }
.gallery-card figure { margin: 0; }
.gallery-card img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; object-position: top; background: #080f1d; }
.gallery-card figcaption { padding: 18px 20px 20px; }
.gallery-card h3 { font: 600 18px/1.35 'Exo 2', sans-serif; margin: 0 0 7px; color: #f1d39a; }
.gallery-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.gallery-note { text-align: center; color: var(--muted); font-size: 13px; margin: 24px 0 0; }
.home-vote-info { padding: 52px 6vw 64px; background: #080f1d; border-top: 1px solid var(--line); }
.home-vote-info > div { max-width: 1440px; margin: auto; }
.home-vote-info > div > .vote-info-kicker, .home-vote-info h2, .home-features-intro { text-align: center; }
.home-vote-info .vote-info-kicker { color: #eac986; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.home-vote-info h2 { color: #f1d39a; font: 700 clamp(23px, 3vw, 32px)/1.35 'Orbitron', sans-serif; margin: 0 0 20px; }
.home-vote-info p { color: var(--muted); font-size: 16px; line-height: 1.8; margin: 0 0 18px; }
.home-vote-info .btn { margin-top: 8px; white-space: normal; text-align: center; }
.home-vote-info .home-features-intro { max-width: 780px; margin: 0 auto 32px; }
.home-feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.home-feature-card { min-width: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #0e1a2d; }
.home-feature-card > img { width: 100%; height: 220px; display: block; object-fit: cover; }
.home-feature-officer > img { object-position: center 20%; }
.home-feature-card > div { padding: 22px; }
.home-feature-card h3 { font: 600 20px/1.35 'Exo 2', sans-serif; color: #f1d39a; margin: 0 0 12px; }
.home-feature-card p { font-size: 15px; line-height: 1.7; margin: 0; }
.home-vote-showcase { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); margin-top: 28px; border: 1px solid #655034; border-radius: 16px; overflow: hidden; background: linear-gradient(125deg, #162538, #101a2b 65%); }
.home-vote-art { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; background: radial-gradient(ellipse at center, #65512b66, transparent 70%); }
.home-vote-art > img { width: min(100%, 280px); height: 240px; object-fit: contain; }
.home-vote-rewards { display: flex; justify-content: center; gap: 18px; }
.home-vote-rewards img { width: 64px; height: 64px; object-fit: contain; padding: 6px; border-radius: 12px; border: 1px solid #746044; background: #0b1526; }
.home-vote-copy { padding: 36px; align-self: center; }
.home-vote-copy h3 { font: 700 clamp(23px, 3vw, 30px)/1.3 'Orbitron', sans-serif; color: #f1d39a; margin: 0 0 20px; }
@media (max-width: 1100px) { .home-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .home-feature-grid, .home-vote-showcase { grid-template-columns: minmax(0, 1fr); } .home-vote-info { padding: 36px 20px; } .home-feature-card > img { height: 200px; } .home-vote-copy { padding: 24px; } .home-vote-art { padding: 20px; } }
.gallery-viewer { width: min(1440px, 94vw); max-width: 94vw; max-height: 94dvh; padding: 16px; background: #0a1424; color: #edf3ff; border: 1px solid #526580; border-radius: 12px; }
.gallery-viewer:modal { overscroll-behavior: contain; }
.gallery-viewer::backdrop { background: rgba(0, 3, 10, .92); overflow: hidden; overscroll-behavior: contain; }
.gallery-viewer header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.gallery-viewer h2 { margin: 0; font: 600 20px 'Exo 2', sans-serif; }
.gallery-viewer img { display: block; width: 100%; height: auto; max-height: 72dvh; object-fit: contain; }
.gallery-viewer button { min-width: 44px; min-height: 44px; padding: 8px 14px; border: 1px solid #526580; border-radius: 7px; background: #182b46; color: #edf3ff; cursor: pointer; font: inherit; }
.gallery-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
@media (max-width: 1024px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .landing .landing-wrap { min-height: 0; } }
@media (max-width: 600px) { .home-gallery { padding: 36px 20px; } .gallery-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; } .gallery-viewer { padding: 10px; } .gallery-viewer h2 { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { .gallery-card { transition: none; } html:has(body.landing) { scroll-behavior: auto; } }
