:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #777777;
  --gap: 8px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

.site-header {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 28px clamp(16px, 4vw, 48px) 24px;
}
.brand { font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; font-size: 14px; }
nav a { margin-left: 24px; text-decoration: none; color: var(--muted); font-size: 14px; }
nav a:hover, nav a[aria-current="page"] { color: var(--fg); }

main { padding: 0 clamp(16px, 4vw, 48px); }

.grid {
  columns: 4;
  column-gap: var(--gap);
}
@media (max-width: 1100px) { .grid { columns: 3; } }
@media (max-width: 800px) { .grid { columns: 2; } }
@media (max-width: 520px) { .grid { columns: 1; } }

.tile {
  display: block; width: 100%; padding: 0; border: 0; background: #f2f2f2; cursor: zoom-in;
  margin: 0 0 var(--gap); overflow: hidden; break-inside: avoid;
}
.tile img {
  width: 100%; height: auto; display: block;
  opacity: 0; transition: opacity .4s ease, transform .6s ease;
}
.tile img.loaded { opacity: 1; }
.tile:hover img { transform: scale(1.02); }

.empty { text-align: center; color: var(--muted); padding: 80px 0; }

.lightbox {
  position: fixed; inset: 0; z-index: 10;
  background: rgba(255,255,255,.97);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 90vw; max-height: 88vh; object-fit: contain; box-shadow: 0 2px 30px rgba(0,0,0,.08); }
.lb-btn {
  position: absolute; background: none; border: 0; color: var(--fg);
  font-size: 44px; line-height: 1; padding: 16px; cursor: pointer; opacity: .55;
}
.lb-btn:hover { opacity: 1; }
.lb-close { top: 8px; right: 12px; font-size: 36px; }
.lb-prev { left: 4px; }
.lb-next { right: 4px; }

.about {
  display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 520px);
  gap: 48px; align-items: start; padding-top: 24px;
}
.about:not(:has(.portrait)) { grid-template-columns: minmax(0, 560px); }
.about h1 { font-size: 22px; font-weight: 600; margin: 0 0 12px; }
.portrait { width: 100%; height: auto; display: block; }
@media (max-width: 720px) { .about { grid-template-columns: 1fr; gap: 24px; } }

.site-footer { color: var(--muted); font-size: 12px; text-align: center; padding: 56px 16px 32px; }
