:root {
  --bg: #f4f8f6;
  --ink: #1a2421;
  --muted: #5d6b67;
  --line: rgba(26, 36, 33, 0.1);
  --primary: #2f9d8a;
  --card: #fff;
  --font: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --display: "Playfair Display", Georgia, serif;
  --gradient-primary: linear-gradient(135deg, #5ecfb5 0%, #2f9d8a 50%, #1a7a6a 100%);
  --gradient-sage: linear-gradient(135deg, #1f8f7a 0%, #3db89f 45%, #9de8d8 100%);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
}
html.dark body {
  color: #f4f8f6;
}

a { color: inherit; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 9px 14px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: #fff;
}

.btn-primary {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
}

.page {
  width: min(1200px, 90vw);
  margin: 0 auto;
  padding: 32px 0 48px;
}

body.has-fixed-nav .page {
  padding-top: 96px;
}

.page-hero {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 18px;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--gradient-sage);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero h1 {
  margin: 10px 0 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
}

.page-hero p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 20px;
}

.filters a {
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 500;
}

.filters a.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

html.dark .filters a,
html.dark nav.filter a {
  background: #2a3633;
  border-color: rgba(255, 255, 255, 0.12);
  color: #eef3f1;
}

html.dark .filters a.is-active,
html.dark nav.filter a.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.gallery-grid {
  columns: 3 220px;
  column-gap: 16px;
}

.gallery-card {
  break-inside: avoid;
  margin: 0 0 16px;
  border: 0;
  padding: 0;
  background: transparent;
  width: 100%;
  cursor: zoom-in;
}

.gallery-card img {
  width: 100%;
  display: block;
  border-radius: 24px;
  box-shadow: 0 14px 30px rgba(26, 36, 33, 0.1);
  object-fit: cover;
}

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

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  background: rgba(10, 16, 14, 0.84);
  padding: 24px;
}

.lightbox.is-open { display: grid; }
.lightbox img {
  max-width: min(960px, 100%);
  max-height: 85dvh;
  border-radius: 18px;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

@media (max-width: 720px) {
  .gallery-grid { columns: 2 140px; }
}