:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #f7f7f5; color: #171717; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
main { max-width: 1500px; margin: 0 auto; padding: calc(26px + env(safe-area-inset-top)) 12px 28px; }
.site-header { display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px 20px; }
h1 { font-size: 17px; font-weight: 650; letter-spacing: .01em; margin: 0; }
#photo-count { margin: 0; color: #767676; font-size: 13px; }
.gallery { columns: 2; column-gap: 8px; }
.photo-button { appearance: none; border: 0; background: #e9e9e7; border-radius: 3px; cursor: zoom-in; display: block; margin: 0 0 8px; overflow: hidden; padding: 0; width: 100%; break-inside: avoid; }
.photo-button:focus-visible, button:focus-visible { outline: 3px solid #276ef1; outline-offset: 3px; }
.photo-button img { display: block; width: 100%; height: auto; min-height: 120px; object-fit: cover; transition: transform .25s ease; }
@media (hover: hover) { .photo-button:hover img { transform: scale(1.015); } }
.empty-state { color: #555; margin: 72px auto; max-width: 320px; text-align: center; }
.empty-state p { line-height: 1.6; }
.hint { color: #777; font-size: 14px; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9em; }
.lightbox { background: #0b0b0b; border: 0; color: #fff; height: 100dvh; margin: 0; max-height: none; max-width: none; overflow: hidden; padding: 0; width: 100vw; }
.lightbox::backdrop { background: #0b0b0b; }
.lightbox-bar { align-items: center; display: flex; justify-content: space-between; left: 0; padding: calc(12px + env(safe-area-inset-top)) 14px 10px; position: absolute; right: 0; top: 0; z-index: 2; }
#lightbox-count { color: #ddd; font-size: 13px; margin: 0; }
.icon-button, .nav-button { align-items: center; background: rgb(0 0 0 / .42); border: 0; border-radius: 50%; color: white; cursor: pointer; display: flex; justify-content: center; }
.icon-button { font-size: 30px; font-weight: 200; height: 42px; line-height: 1; width: 42px; }
#lightbox-figure { align-items: center; display: flex; flex-direction: column; height: 100%; justify-content: center; margin: 0; padding: 64px 12px 36px; }
#lightbox-image { display: block; max-height: 100%; max-width: 100%; object-fit: contain; user-select: none; }
#lightbox-caption { color: #cfcfcf; font-size: 12px; margin-top: 9px; min-height: 1em; text-align: center; }
.lightbox-meta { color: #f0f0f0; font-size: 12px; letter-spacing: .02em; line-height: 1.5; margin: 5px 0 0; max-width: 100%; text-align: center; }
.nav-button { font-size: 43px; height: 46px; line-height: 1; position: absolute; top: calc(50% - 23px); width: 46px; z-index: 2; }
.previous { left: 10px; }.next { right: 10px; }
@media (min-width: 680px) { main { padding-left: 20px; padding-right: 20px; } .gallery { columns: 3; column-gap: 12px; } .photo-button { margin-bottom: 12px; } }
@media (min-width: 1050px) { .gallery { columns: 4; } }
@media (min-width: 1350px) { .gallery { columns: 5; } }
@media (hover: hover) and (min-width: 680px) { .nav-button { opacity: .7; } .nav-button:hover { opacity: 1; } }
