/* ── Photography Page Styles ── */
html { scroll-behavior: smooth; }

body {
  background: #0a0a0b;
  color: #e8e3da;
  font-family: 'Poppins', sans-serif;
  opacity: 0;
  min-height: 100vh;
}
body.loaded { opacity: 1; transition: opacity 300ms ease; }

/* ── Header ── */
header {
  position: absolute; top: 0; left: 0; right: 0;
  padding: 28px 36px;
  display: flex; align-items: center; gap: 14px;
  z-index: 20;
}
.back {
  font-size: 20px; font-weight: 100;
  color: rgba(232,227,218,0.45); text-decoration: none;
  transition: color 200ms;
}
.back:hover { color: rgba(232,227,218,0.9); }
.sep { color: rgba(232,227,218,0.15); font-size: 11px; }
.logo {
  font-family: 'Poppins', sans-serif;
  font-style: normal;
  font-weight: 300; font-size: 15px;
  color: rgba(232,227,218,0.5);
  letter-spacing: 0.02em;
}

/* ── Hero ── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
}

/* CSS cityscape fallback if image fails */
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom,
      #0a0a14 0%,
      #0f0f1e 20%,
      #12101a 50%,
      #0a080e 80%,
      #050408 100%
    );
}

/* City silhouette SVG overlay */
.hero-skyline {
  position: absolute; bottom: 0; left: 0; right: 0;
  opacity: 0.6;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.1) 0%,
    rgba(0,0,0,0.35) 40%,
    rgba(0,0,0,0.55) 100%
  );
}

.hero-text {
  position: relative; z-index: 5;
  text-align: center;
  padding: 0 32px;
  max-width: 700px;
}
.hero-text h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 300;
  line-height: 1.3;
  color: #fff;
  letter-spacing: -0.01em;
}

.hero-scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.scroll-label { font-size: 9px; letter-spacing: 0.2em; color: rgba(255,255,255,0.3); text-transform: uppercase; font-weight: 400; }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent); animation: scrollPulse 2s ease infinite; }
@keyframes scrollPulse { 0%,100%{opacity:0.3} 50%{opacity:0.7} }

/* ── Photo Grid ── */
.grid-section { background: #0a0a0b; padding-bottom: 0; }

.grid-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 32px 20px;
  border-bottom: 1px solid #161614;
}
.filter-tabs { display: flex; gap: 0; }
.filter-tab {
  font-family: 'Poppins', sans-serif;
  font-size: 11px; font-weight: 400; letter-spacing: 0.06em;
  color: #4a4845; background: none; border: none;
  padding: 6px 14px; cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color 150ms, border-color 150ms;
}
.filter-tab.active { color: #e8e3da; border-bottom-color: #e8e3da; }
.filter-tab:hover:not(.active) { color: #8a8680; }

.grid-count { font-size: 10px; color: #3d3b38; font-family: 'Poppins', sans-serif; letter-spacing: 0.08em; }

/* 4-column photo grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(max(25%, 150px), 1fr));
  gap: 3px;
}

.photo-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #131211;
}
.photo-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease, filter 400ms ease;
  filter: brightness(0.9);
}
.photo-item:hover img { transform: scale(1.04); filter: brightness(0.65); }

.photo-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px 14px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  opacity: 0;
  transition: opacity 250ms ease;
  font-family: 'Poppins', sans-serif;
  font-size: 11px; font-weight: 300;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(232,227,218,0.9);
}
.photo-item:hover .photo-caption { opacity: 1; }

/* Varied aspect ratios for visual interest */
.photo-item.tall { aspect-ratio: 3/4; }
.photo-item.wide { aspect-ratio: 4/3; }
.photo-item.sq   { aspect-ratio: 1; }
.photo-item.port { aspect-ratio: 2/3; }

/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.92); z-index: 100;
  align-items: center; justify-content: center;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lightbox-caption {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: 0.12em; color: rgba(232,227,218,0.5);
  text-transform: uppercase; font-weight: 300; white-space: nowrap;
}
.lightbox-close {
  position: absolute; top: 24px; right: 32px;
  font-size: 20px; color: rgba(232,227,218,0.4);
  cursor: pointer; background: none; border: none;
  transition: color 150ms; font-family: 'Poppins', sans-serif; font-weight: 300;
}
.lightbox-close:hover { color: rgba(232,227,218,0.9); }
