:root {
  --bg: #fbfaf8;
  --ink: #1e1b18;
  --muted: #8a827a;
  --line: #e7e2da;
  --accent: #1e1b18;
  --radius: 2px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, system-ui, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
  text-align: center;
  padding: 96px 24px 56px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 18px;
}
.couple {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  margin: 0;
}
.date {
  color: var(--muted);
  letter-spacing: 0.04em;
  margin: 14px 0 32px;
  font-size: 15px;
}

/* Buttons */
.header-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 11px 22px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bg);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  transition: opacity 0.2s ease;
  cursor: pointer;
}
.btn:hover { opacity: 0.78; }
.btn-ghost {
  color: var(--ink);
  background: transparent;
}

/* Grid */
.grid {
  column-count: 3;
  column-gap: 14px;
  padding: 40px 24px 64px;
  max-width: 1280px;
  margin: 0 auto;
}
.grid figure {
  margin: 0 0 14px;
  break-inside: avoid;
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius);
  background: #efeae2;
}
.grid img {
  width: 100%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
  opacity: 0;
}
.grid img.loaded { opacity: 1; }
.grid figure:hover img { transform: scale(1.04); }

@media (max-width: 900px) { .grid { column-count: 2; } }
@media (max-width: 560px) { .grid { column-count: 1; } .site-header { padding-top: 64px; } }

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

/* Footer */
.site-footer {
  text-align: center;
  padding: 40px 24px 64px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.lightbox[hidden] { display: none; }
.lb-figure {
  margin: 0;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.lb-figure img {
  max-width: 92vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lb-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.lb-close, .lb-nav {
  position: absolute;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font-weight: 300;
  transition: color 0.2s ease;
}
.lb-close:hover, .lb-nav:hover { color: #fff; }
.lb-close { top: 22px; right: 28px; font-size: 40px; line-height: 1; }
.lb-nav { top: 50%; transform: translateY(-50%); font-size: 56px; padding: 0 24px; }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }

@media (max-width: 560px) {
  .lb-nav { font-size: 40px; padding: 0 12px; }
  .lb-figure img { max-height: 70vh; }
}
