:root {
  --bg: #111;
  --fg: #eee;
  --muted: #8a8a8a;
  --line: #2a2a2a;
  --accent: #d8c3a5;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font: 300 16px/1.6 var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
main { flex: 1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter);
  background: rgba(17, 17, 17, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font: 500 1.6rem/1 var(--serif);
  letter-spacing: 0.02em;
}

.site-nav { display: flex; gap: 28px; }
.site-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.site-nav a:hover, .site-nav a.active { color: var(--fg); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 28px;
  height: 20px;
  position: relative;
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--fg);
  transition: transform 0.25s;
}
.nav-toggle span:first-child { top: 6px; }
.nav-toggle span:last-child { bottom: 6px; }
.nav-open .nav-toggle span:first-child { transform: translateY(3px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-open .site-nav { display: flex; }
  .site-nav a { padding: 14px var(--gutter); }
}

/* ---------- Home ---------- */
.hero {
  padding: clamp(64px, 12vw, 140px) var(--gutter) clamp(40px, 6vw, 72px);
  max-width: 900px;
}
.hero h1 {
  font: 400 clamp(2.4rem, 7vw, 4.8rem)/1.05 var(--serif);
  margin-bottom: 16px;
}
.hero p { color: var(--muted); font-size: 1.05rem; }

.categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  padding: 0 var(--gutter) var(--gutter);
}
.category-card {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #1a1a1a;
}
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease, opacity 0.4s;
  opacity: 0.82;
}
.category-card:hover img { transform: scale(1.05); opacity: 1; }
.category-card .label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}
.category-card h2 { font: 400 2rem/1.1 var(--serif); }
.category-card span {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ccc;
}

/* ---------- Gallery ---------- */
.gallery-head {
  padding: clamp(48px, 8vw, 96px) var(--gutter) 32px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.gallery-head h1 { font: 400 clamp(2.2rem, 6vw, 3.8rem)/1 var(--serif); }
.gallery-head .count {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.masonry {
  columns: 3 320px;
  column-gap: 12px;
  padding: 0 var(--gutter) var(--gutter);
}
.masonry button {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  border: 0;
  padding: 0;
  background: #1a1a1a;
  cursor: zoom-in;
  break-inside: avoid;
  overflow: hidden;
}
.masonry img {
  width: 100%;
  height: auto;
  transition: transform 0.6s ease, opacity 0.6s ease;
  opacity: 0;
}
.masonry img.loaded { opacity: 1; }
.masonry.sets {
  columns: auto;
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  gap: 12px;
}
.masonry.sets button { margin-bottom: 0; }
.masonry button:hover img { transform: scale(1.03); }

.cat-pager {
  display: flex;
  justify-content: space-between;
  padding: 24px var(--gutter) 48px;
  border-top: 1px solid var(--line);
  margin: 0 var(--gutter);
  padding-inline: 0;
}
.cat-pager a {
  font: 400 1.4rem var(--serif);
  color: var(--muted);
  transition: color 0.2s;
}
.cat-pager a:hover { color: var(--fg); }

.crumb {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.crumb:hover { color: var(--fg); }
.location { margin-top: 8px; color: var(--muted); }

.empty {
  margin: 0 var(--gutter) var(--gutter);
  padding: 64px 24px;
  border: 1px dashed var(--line);
  text-align: center;
  color: var(--muted);
}

/* ---------- About ---------- */
.about {
  padding: clamp(64px, 10vw, 120px) var(--gutter);
  max-width: 720px;
}
.about h1 { font: 400 clamp(2.2rem, 6vw, 3.8rem)/1 var(--serif); margin-bottom: 28px; }
.about p { color: #bbb; margin-bottom: 28px; font-size: 1.05rem; }
.about h2 { font: 400 clamp(1.6rem, 4vw, 2.2rem)/1.1 var(--serif); margin: 48px 0 20px; }
.kit { list-style: none; margin-bottom: 48px; border-top: 1px solid var(--line); }
.kit li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.kit strong { display: block; font-weight: 400; color: var(--fg); }
.kit span { display: block; color: var(--muted); font-size: 0.95rem; margin-top: 2px; }
.about .links { display: flex; gap: 24px; flex-wrap: wrap; }
.about .links a {
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
  padding-bottom: 2px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 24px var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 8, 8, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade 0.25s ease;
}
.lightbox[hidden] { display: none; }
.lightbox figure {
  max-width: min(92vw, 1600px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox img {
  max-height: 82vh;
  max-width: 100%;
  object-fit: contain;
}
.lightbox figcaption {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}
.lightbox figcaption strong { color: var(--fg); font-weight: 400; }
.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: var(--fg);
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
  padding: 16px;
  transition: opacity 0.2s;
}
.lightbox button:hover { opacity: 1; }
.lb-close { top: 8px; right: 12px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }

@keyframes fade { from { opacity: 0; } }

.view { animation: fade 0.4s ease; }
