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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 56px;
}

body {
  background: #e8e7e4;
  color: #222;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  padding-top: 56px;
}

/* ══ NAV ══════════════════════════════════════════════════ */

#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: #1a1a1a;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: auto;
  padding: 0 12px;
  gap: 4px;
  text-transform: uppercase;
}

/* Each nav item is a pill — anchor OR span */
#nav a,
.nav-current {
  display: inline-block;
  padding: 5px clamp(7px, 1.4vw, 15px);
  border-radius: 999px;
  font-size: clamp(10px, 1.25vw, 13px);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  letter-spacing: 0.01em;
}

/* Inactive links */
#nav a:link,
#nav a:visited {
  color: #eee;
  background: #8a8a8a;
}

#nav a:hover,
#nav a:active {
  color: #000;
  background: rgba(255, 255, 255);
}

/* Active / current page — inverted pill, clearly stands out */
.nav-current {
  color: #1a1a1a;
  background: #fff;
  font-weight: 500;
  cursor: default;
}

/* ══ WRAPPER ══════════════════════════════════════════════ */

#wrapper {
  max-width: 840px;
  margin: 0 auto;
  background: #fff;
  padding: 48px 36px 80px;
  min-height: calc(100vh - 56px);
}

/* ══ PAGE HEADER ══════════════════════════════════════════ */

.page-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid #ebebeb;
}

.page-meta {
  font-size: 16px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.page-desc {
  max-width: 600px;
  margin: 0 auto;
  font-size: 17px;
  color: #555;
  line-height: 1.5;
}

.page-desc a      { color: #b07010; text-decoration: none; }
.page-desc a:hover { text-decoration: underline; }

/* ══ HUB CARDS ════════════════════════════════════════════ */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.card {
  display: block;
  background: #f7f6f3;
  border: 1px solid #e2e1de;
  border-radius: 6px;
  padding: 28px 24px;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.card:hover {
  border-color: #c07d10;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.card-type {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #777;
  margin-bottom: 8px;
}

.card-title {
  font-size: 18px;
  font-weight: 500;
  color: #111;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 15px;
  color: #666;
  line-height: 1.65;
}

.card-count {
  margin-top: 16px;
  font-size: 12px;
  font-weight: 600;
  color: #c07d10;
}

/* ══ GALLERY GRID ═════════════════════════════════════════ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 4px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: opacity 0.2s;
  background: #e8e7e4;
}

.gallery-grid img:hover { opacity: 0.82; }

/* ══ LIGHTBOX ═════════════════════════════════════════════ */

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 500;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
#lightbox.open { display: flex; }

#lb-img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  display: block;
}

#lb-close {
  position: absolute;
  top: 18px; right: 24px;
  background: none; border: none;
  color: #888; font-size: 28px;
  cursor: pointer; line-height: 1;
}
#lb-close:hover { color: #fff; }

#lb-prev, #lb-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: none; border: none;
  color: #777; font-size: 44px;
  cursor: pointer; padding: 0 20px;
  line-height: 1;
}
#lb-prev { left: 0; }
#lb-next { right: 0; }
#lb-prev:hover, #lb-next:hover { color: #fff; }

#lb-caption {
  margin-top: 16px;
  font-size: 13px;
  color: #aaa;
  text-align: center;
  max-width: 580px;
  min-height: 1.4em;
}

#lb-counter {
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: #555;
  letter-spacing: 0.08em;
}

/* ══ VIDEO PAGE ═══════════════════════════════════════════ */

.video-section {
  margin-bottom: 52px;
  padding-bottom: 52px;
  border-bottom: 1px solid #ebebeb;
}
.video-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.video-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #999;
  margin-bottom: 6px;
}

.video-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.video-section p {
  font-size: 16px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 20px;
  max-width: 700px; /* 600px */
}

/* Fluid video — iframe carries its own aspect ratio, no absolute hack needed */
.video-wrap {
  max-width: 700px;
}

.video-wrap iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #111;
}

/* ══ UTILITY ══════════════════════════════════════════════ */

.top-link {
  text-align: center;
  margin-top: 44px;
  font-size: 12px;
}
.top-link a { color: #bbb; text-decoration: none; }
.top-link a:hover { color: #555; }

/* ══ RESPONSIVE ═══════════════════════════════════════════ */

@media (max-width: 600px) {
  #wrapper { padding: 32px 16px 60px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  #lb-prev, #lb-next { font-size: 32px; padding: 0 10px; }
  .page-title { font-size: 22px; }
}
