.gallery-section{margin-top:4rem}.gallery-section>h2{margin-bottom:1.5rem;font-size:1.25rem}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:2.5rem 2rem;display:grid}.gallery-grid figure{min-width:0;margin:0}.gallery-grid a{background:var(--surface);display:block}.gallery-grid img{width:100%}.gallery-grid figcaption{color:var(--muted);margin-top:.875rem;font-size:.875rem}dialog{background:var(--page);width:min(74rem,100% - 2rem);max-height:calc(100dvh - 2rem);color:var(--ink);border:1px solid var(--line);overscroll-behavior:contain;padding:1.25rem}dialog::backdrop{background:#000c}dialog figure{margin:1rem 0}dialog img{object-fit:contain;width:auto;max-width:100%;height:auto;max-height:calc(100dvh - 15rem);margin-inline:auto}dialog figcaption{margin-top:1rem;font-size:.875rem}dialog button{min-height:44px;color:var(--ink);background:var(--surface);border:1px solid var(--muted);padding:.5rem .875rem}dialog button:hover{color:var(--accent);border-color:var(--accent)}.dialog-toolbar,.dialog-navigation{justify-content:space-between;align-items:center;gap:1rem;font-size:.875rem;display:flex}html:has(dialog[open]){overflow:hidden}@media (width<=40rem){.gallery-grid{grid-template-columns:1fr}}
