* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, sans-serif; background: #111; color: #eee; }
header { display: flex; gap: .75rem; align-items: center; padding: 1rem; position: sticky; top: 0; background: #111e; backdrop-filter: blur(6px); }
header h1 { margin: 0 auto 0 0; font-size: 1.25rem; }
select, input { padding: .4rem .6rem; background: #222; color: inherit; border: 1px solid #444; border-radius: 6px; }
#grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; padding: 0 6px 6px; }
#grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; cursor: zoom-in; background: #222; }
#lightbox { position: fixed; inset: 0; background: #000e; display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
#lightbox[hidden] { display: none; }
#lightbox img { max-width: 96vw; max-height: 96vh; }
h1 a { color: inherit; text-decoration: none; }
#collections { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; padding: 12px; }
#collections a { color: inherit; text-decoration: none; background: #1a1a1a; border-radius: 8px; overflow: hidden; }
#collections img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
#collections div { padding: .6rem .8rem; }
#collections small { color: #999; }
.hide { display: none; }
[hidden] { display: none !important; }
#lightbox img { touch-action: pan-y; user-select: none; }
.nav { position: absolute; top: 50%; transform: translateY(-50%); background: #0006; color: #fff; border: 0; font-size: 2.5rem; width: 3rem; height: 5rem; cursor: pointer; border-radius: 6px; }
.nav:hover { background: #0009; }
.prev { left: .5rem; } .next { right: .5rem; }
@media (pointer: coarse) { .nav { display: none; } }
