/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --surface-2: #1a1a1a;
  --border: #2a2a2a;
  --text-dim: #555;
  --text-mid: #888;
  --text: #bbb;
  --text-bright: #efefef;
  --white: #ffffff;
  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --nav-height: 68px;
  --ease: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.nav-logo-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mid);
  transition: color var(--ease);
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--white);
  transition: width var(--ease);
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 6px;
  z-index: 201;
}

.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--white);
  transition: var(--ease);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 2rem) 2rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(60,60,60,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-logo-wrap {
  animation: fadeInUp 1s ease both;
  margin-bottom: 2.5rem;
}

.hero-logo {
  width: min(500px, 82vw);
  height: auto;
}

.hero-logo-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero-logo-wrap.logo-missing .hero-logo { display: none; }
.hero-logo-wrap.logo-missing .hero-logo-fallback { display: flex; }

.hero-logo-name {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.05em;
  line-height: 1;
}

.hero-logo-sub {
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 3rem;
  animation: fadeInUp 1s 0.15s ease both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 1s 0.3s ease both;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2.2rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all var(--ease);
  line-height: 1;
}

.btn-primary {
  background: var(--white);
  color: var(--bg);
  border: 1px solid var(--white);
}

.btn-primary:hover {
  background: transparent;
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}

.btn-outline:hover {
  border-color: var(--white);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeInUp 1s 0.6s ease both;
}

.hero-scroll span {
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-dim), transparent);
  animation: scrollDrop 2s 1.5s ease infinite;
}

/* ===== CATEGORIES SECTION ===== */
.categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.category-card {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  cursor: pointer;
  display: block;
  background: var(--surface-2);
}

.category-card::before,
.category-card::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 22px;
  z-index: 2;
  background: repeating-linear-gradient(
    to right,
    var(--bg) 0, var(--bg) 6px,
    transparent 6px, transparent 22px,
    var(--bg) 22px, var(--bg) 28px
  );
}
.category-card::before { top: 0; }
.category-card::after { bottom: 0; }

.category-card-bg {
  position: absolute;
  inset: 0;
  background: var(--surface-2);
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-card:hover .category-card-bg { transform: scale(1.04); }

.category-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 60%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: background var(--ease);
}

.category-card:hover .category-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.35) 60%);
}

.category-card-label {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.5rem;
}

.category-card-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.category-card-subs {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.5rem;
}

.category-card-arrow {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  transition: all var(--ease);
}

.category-card:hover .category-card-arrow {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* ===== ABOUT SECTION ===== */
.about {
  padding: 7rem 2rem;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.section-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 300;
  color: var(--text-bright);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.section-divider {
  width: 36px; height: 1px;
  background: var(--border);
  margin: 0 auto 2rem;
}

.about-text {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-mid);
}

.about-text + .about-text {
  margin-top: 1.25rem;
}

.about-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  margin-top: 2.5rem;
  line-height: 1.5;
}

/* ===== CONTACT SECTION ===== */
.contact {
  padding: 6rem 2rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.contact-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.contact-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
  border: 1px solid var(--border);
  padding: 0.7rem 1.4rem;
  transition: all var(--ease);
}

.contact-link:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}

/* ===== FOOTER ===== */
footer {
  padding: 1.75rem 2rem;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

/* ===== PAGE HEADER (sub-pages) ===== */
.page-header {
  padding: calc(var(--nav-height) + 5rem) 2rem 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-header-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.page-header-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 1rem;
}

.page-header-sub {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: var(--text-mid);
}

/* ===== GALLERY TABS ===== */
.gallery-tabs {
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0;
  margin-top: 2rem;
}

.gallery-tab {
  padding: 1rem 1.5rem;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mid);
  border-bottom: 1.5px solid transparent;
  margin-bottom: -1px;
  transition: all var(--ease);
}

.gallery-tab:hover { color: var(--text-bright); }
.gallery-tab.active {
  color: var(--white);
  border-bottom-color: var(--white);
}

/* ===== ALBUM GRID (folder thumbnails) ===== */
.gallery-grid.album-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
  columns: unset;
  margin-top: 2rem;
}

.album-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface-2);
}

.album-thumb-wrap {
  position: absolute;
  inset: 0;
}

.album-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.3s ease;
  filter: grayscale(15%);
}

.album-card:hover .album-thumb-wrap img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.album-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: var(--surface-2);
  animation: albumPulse 1.6s ease-in-out infinite;
}

.album-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem 1rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.album-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.album-date {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
}

.album-category {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

/* ===== BREADCRUMB ===== */
.gallery-breadcrumb {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 1.75rem 1.5rem 0;
  max-width: 1440px;
  margin: 0 auto;
}

.breadcrumb-back {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mid);
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--border);
  transition: all var(--ease);
}

.breadcrumb-back:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}

.breadcrumb-sep {
  color: var(--text-dim);
}

.breadcrumb-current {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-bright);
}

@keyframes albumPulse {
  0%, 100% { background-color: var(--surface-2); }
  50%       { background-color: var(--surface); }
}

/* ===== GALLERY GRID ===== */
.gallery-section {
  padding: 3rem 1.5rem 6rem;
  max-width: 1440px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
  background: var(--surface);
}

.gallery-item {
  aspect-ratio: 3 / 4;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.3s ease;
  filter: grayscale(15%);
}

.gallery-item:hover img {
  transform: scale(1.04);
  filter: grayscale(0%);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .gallery-item-overlay { background: rgba(0,0,0,0.2); }

.gallery-item-icon {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  opacity: 0;
  transform: scale(0.7);
  transition: all 0.25s ease;
}

.gallery-item:hover .gallery-item-icon {
  opacity: 1;
  transform: scale(1);
}

/* ===== ALBUM GRID (folder thumbnails) ===== */
.gallery-grid.album-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
  columns: unset;
  margin-top: 2rem;
}

.album-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface-2);
}

.album-thumb-wrap {
  position: absolute;
  inset: 0;
}

.album-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.3s ease;
  filter: grayscale(15%);
}

.album-card:hover .album-thumb-wrap img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.album-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: var(--surface-2);
  animation: albumPulse 1.6s ease-in-out infinite;
}

.album-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem 1rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.album-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.album-date {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
}

.album-category {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

/* ===== BREADCRUMB ===== */
.gallery-breadcrumb {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 1.75rem 1.5rem 0;
  max-width: 1440px;
  margin: 0 auto;
}

.breadcrumb-back {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mid);
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--border);
  transition: all var(--ease);
}

.breadcrumb-back:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}

.breadcrumb-sep {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.breadcrumb-current {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-bright);
}

@keyframes albumPulse {
  0%, 100% { background-color: var(--surface-2); }
  50%       { background-color: var(--surface); }
}

/* ===== LOADING & EMPTY STATES ===== */
.gallery-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  width: 100%;
  text-align: center;
}

.spinner {
  width: 32px; height: 32px;
  border: 1.5px solid var(--border);
  border-top-color: rgba(255,255,255,0.6);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.gallery-empty-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--text-mid);
  margin-top: 1rem;
  margin-bottom: 0.4rem;
}

.gallery-empty-sub {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.gallery-error-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.97);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.lightbox.open { display: flex; }

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

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: color var(--ease), background var(--ease);
  font-size: 1.3rem;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { color: var(--white); }

.lightbox-close {
  top: 1.25rem; right: 1.25rem;
  width: 44px; height: 44px;
  font-size: 1.4rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 72px;
  border: 1px solid rgba(255,255,255,0.1);
}

.lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.2);
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-counter {
  position: fixed;
  bottom: 1.25rem; left: 50%; transform: translateX(-50%);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
}

/* ===== EASTER EGG ===== */
.egg-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.93);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.egg-overlay.open { display: flex; }

.egg-card {
  background: #004C54;
  border: 2px solid #A5ACAF;
  padding: 3rem 4.5rem;
  text-align: center;
  animation: eggPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  pointer-events: none;
}

.egg-bird {
  font-size: 5.5rem;
  line-height: 1;
  margin-bottom: 1rem;
  display: block;
  animation: wingFlap 0.6s ease-in-out infinite alternate;
}

.egg-shout {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(2.8rem, 10vw, 5.5rem);
  font-weight: 800;
  color: #A5ACAF;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 40px rgba(165,172,175,0.4);
  line-height: 1;
}

.egg-dismiss {
  display: block;
  margin-top: 1.25rem;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(165,172,175,0.35);
}

@keyframes eggPop {
  from { transform: scale(0.2) rotate(-8deg); opacity: 0; }
  to   { transform: scale(1)   rotate(0deg);  opacity: 1; }
}

@keyframes wingFlap {
  from { transform: scaleY(1)    rotate(-5deg); }
  to   { transform: scaleY(0.75) rotate(5deg);  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes scrollDrop {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav {
    padding: 0 1.5rem;
    /* backdrop-filter causes position:fixed children to be positioned relative
       to this element instead of the viewport, breaking the full-screen overlay. */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #0a0a0a;
  }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: #0a0a0a;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 300;
  }

  .nav-links.open { display: flex; }

  /* Keep the logo/hamburger visible above the open menu */
  .nav-logo,
  .nav-toggle { position: relative; z-index: 301; }

  .nav-links a {
    font-size: 1rem;
    letter-spacing: 0.2em;
  }

  .nav-toggle { display: flex; }

  .categories { grid-template-columns: 1fr; }
  .category-card { aspect-ratio: 16/9; }

  .about { padding: 4rem 1.5rem; }

  .gallery-section { padding: 2rem 0.75rem 4rem; }

  .lightbox-prev, .lightbox-next { display: none; }
  .lightbox-img { max-width: 98vw; max-height: 86vh; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn { width: 220px; text-align: center; }
}
