/* ════════════════════════════════════════════════
   PHOTOGRAPHY PAGE
   ════════════════════════════════════════════════ */

/* ── Nav: always light on this page (no dark hero) ── */
.photo-page .nav {
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.photo-page .nav .nav-logo  { color: var(--text); }
.photo-page .nav .nav-links a { color: var(--text); }


/* ── Page header ────────────────────────────────── */
.photo-header {
  padding: 10rem 3rem 4rem;
}

.photo-header-sub {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 400;
}

.photo-header-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-top: 0.75rem;
}


/* ── Gallery grid ───────────────────────────────── */
.gallery-section {
  padding: 0 3rem 8rem;
}

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


/* ── Gallery card ───────────────────────────────── */
.gallery-card {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 0.6rem;
  cursor: pointer;
  background: var(--border);
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-card:hover .gallery-thumb {
  transform: scale(1.05);
}

/* hover overlay + title */
.gallery-hover {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.5);
  display: flex;
  align-items: flex-end;
  padding: 0.9rem 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-hover {
  opacity: 1;
}

.gallery-hover-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #fff;
  line-height: 1.3;
}


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

.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(10, 10, 10, 0.9);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lb-overlay.open {
  display: flex;
  animation: lb-fade 0.22s ease;
}

@keyframes lb-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* container */
.lb-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1080px;
  height: 88vh;
  background: transparent;
  overflow: hidden;
  animation: lb-rise 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes lb-rise {
  from { transform: scale(0.96); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/* close button */
.lb-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 10;
  width: 2.1rem;
  height: 2.1rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.lb-close:hover { background: #fff; }


/* ── Media ──────────────────────────────────────── */
.lb-media {
  flex: 1;
  position: relative;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lb-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* arrows */
.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.4rem;
  height: 2.4rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 5;
}
.lb-arrow:hover { background: rgba(255, 255, 255, 0.28); }
.lb-prev { left: 0.75rem; }
.lb-next { right: 0.75rem; }

/* image counter */
.lb-counter {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.38);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}



/* ── Info side (right) ──────────────────────────── */
.lb-info {
  flex: 1;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  min-height: 0;
}

.lb-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 1.1rem;
}

.lb-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
  flex: 1;
}

.lb-date {
  margin-top: 2rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}


/* ── Thumbnail strip ────────────────────────────── */
.lb-strip {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  background: rgba(0, 0, 0, 0.75);
  justify-content: center;
}

.lb-strip::-webkit-scrollbar { display: none; }

.lb-strip-thumb {
  flex: 0 0 auto;
  width: 3.8rem;
  height: 3.8rem;
  object-fit: cover;
  border-radius: 0.3rem;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.2s, outline 0.15s;
  outline: 2px solid transparent;
}

.lb-strip-thumb:hover { opacity: 0.8; }
.lb-strip-thumb.active {
  opacity: 1;
  outline: 2px solid #fff;
}


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

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

@media (max-width: 768px) {
  .photo-header   { padding: 8rem 1.5rem 3rem; }
  .gallery-section { padding: 0 1.5rem 5rem; }
  .gallery-grid   { grid-template-columns: repeat(2, 1fr); }

  /* lightbox: sheet slides up from bottom */
  .lb-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .lb-inner {
    flex-direction: column;
    height: 88vh;
    max-width: 100%;
    width: 100%;
  }
  .lb-strip-thumb {
    width: 2.8rem;
    height: 2.8rem;
  }
  .lb-media {
    flex: 1;
    width: 100%;
  }
  .lb-media img {
    width: 100%;
    height: 100%;
    max-width: 100%;
  }
  .lb-close { top: 0.75rem; right: 0.75rem; }
}
