/* Colors: change these to restyle the whole site */
:root {
  --bg: #14110f;
  --text: #f3e9dc;
  --muted: #a8988a;
  --accent: #e08a3c;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
header { text-align: center; padding: 56px 16px 28px; }
h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  letter-spacing: .04em;
  font-weight: 800;
}
.tag { margin: 6px 0 0; color: var(--accent); font-size: 1.1rem; }

#gallery {
  columns: 3 300px;
  column-gap: 14px;
  padding: 0 14px;
  max-width: 1400px;
  margin: 0 auto;
}
.tile {
  display: block;
  position: relative;
  margin-bottom: 14px;
  break-inside: avoid;
  border-radius: 10px;
  overflow: hidden;
}
.tile img { width: 100%; display: block; transition: transform .4s; }
.tile:hover img { transform: scale(1.04); }
.tile span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px 12px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: #fff; font-weight: 600;
  opacity: 0; transition: opacity .3s;
}
.tile:hover span { opacity: 1; }
@media (hover: none) { .tile span { opacity: 1; } }

#lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.94);
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
}
#lightbox[hidden] { display: none; }
#lightbox figure { margin: 0; text-align: center; }
#lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 6px; }
#lightbox figcaption { color: var(--muted); margin-top: 12px; padding: 0 12px; }
#lightbox figcaption b { color: var(--text); }
#lightbox button {
  position: absolute; background: none; border: 0;
  color: #fff; font-size: 3rem; cursor: pointer; padding: 12px 18px;
}
.close { top: 6px; right: 10px; }
.prev { left: 4px; top: 50%; transform: translateY(-50%); }
.next { right: 4px; top: 50%; transform: translateY(-50%); }

footer { text-align: center; color: var(--muted); padding: 40px 16px; font-size: .9rem; }
