.gallery-page { padding-block: clamp(28px, 5vw, 60px) 70px; min-height: 65vh; }
.gallery-wall { columns: 3; column-gap: 10px; }
.gallery-card { display: block; width: 100%; padding: 0; margin-bottom: 10px; break-inside: avoid; position: relative; overflow: hidden; text-align: left; border: 1px solid var(--line); border-radius: 17px; background: #e9f1f6; cursor: pointer; color: white; }
.gallery-card > img { display: block; width: 100%; height: auto; }
.gallery-card-copy { position: absolute; inset: auto 0 0; padding: 48px 18px 18px; display: grid; gap: 6px; background: linear-gradient(transparent, #102b43e6); }
.gallery-card-copy strong { font-size: 19px; }
.gallery-kind { justify-self: start; padding: 4px 9px; border: 1px solid #ffffff55; border-radius: 20px; font-size: 12px; background: #122d4380; }
.gallery-card:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.gallery-viewer { width: min(940px, calc(100% - 24px)); max-height: calc(100svh - 24px); padding: 0; overflow-y: auto; border: 1px solid var(--line); border-radius: 18px; background: white; color: var(--ink); overscroll-behavior: contain; }
.gallery-viewer::backdrop { background: #0b1b2de0; }
.gallery-viewer .dialog-heading { position: sticky; top: 0; z-index: 1; padding: 16px 20px; background: white; align-items: center; border-bottom: 1px solid var(--line); }
.gallery-viewer .dialog-heading h2 { font-size: 23px; }
.gallery-viewer .circle-button { flex: none; }
.gallery-media { display: grid; place-items: center; background: #0b1927; }
.gallery-media > :is(video,img) { display: block; width: auto; max-width: 100%; max-height: calc(100svh - 170px); object-fit: contain; }
.gallery-viewer > p { padding: 14px 20px; font-size: 14px; color: var(--muted); }
@media (max-width: 950px) { .gallery-wall { columns: 2; } }
@media (max-width: 560px) { .gallery-wall { columns: 1; } .gallery-card { max-width: 420px; margin-inline: auto; } .gallery-viewer .dialog-heading { padding: 12px; } }
@media (prefers-reduced-motion: no-preference) { .gallery-card img { transition: transform .25s ease; } .gallery-card:is(:hover,:focus-visible) img { transform: scale(1.015); } }
