:root {
  --bg: #faf7f2;
  --text: #2b2420;
  --muted: #7a6f63;
  --accent: #8a5a34;
  --header-bg: #ffffff;
  --border: #e8e1d8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.site-header {
  padding: 1rem 1.5rem;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.landing,
.gallery-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.gallery-title {
  font-size: 1.75rem;
  margin: 0 0 0.25rem;
}

.gallery-state {
  color: var(--muted);
}

.grid {
  column-count: 2;
  column-gap: 12px;
}

@media (min-width: 600px) {
  .grid {
    column-count: 3;
  }
}

@media (min-width: 900px) {
  .grid {
    column-count: 4;
  }
}

.grid-item {
  margin: 0 0 12px;
  break-inside: avoid;
}

.grid-item img {
  width: 100%;
  display: block;
  border-radius: 6px;
  cursor: pointer;
  background: var(--border);
  transition: opacity 0.2s ease;
}

.grid-item img:hover {
  opacity: 0.9;
}

.empty {
  color: var(--muted);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-btn {
  position: absolute;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem;
}

.lightbox-close {
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

@media (max-width: 600px) {
  .lightbox-btn {
    font-size: 2rem;
  }
}
