/* ─── Photography Page ───────────────────────────────────── */
.photo-page {
  min-height: 100vh;
  padding: calc(8vh + 3rem) 2rem 4rem;
  box-sizing: border-box;
}

.photo-page-header {
  text-align: center;
  margin-bottom: 3rem;
}

/* ─── Masonry Grid ───────────────────────────────────────── */
.photo-grid {
  columns: 3 280px;
  column-gap: 0.75rem;
}

.photo-grid-item {
  break-inside: avoid;
  margin-bottom: 0.75rem;
  cursor: pointer;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
}

.photo-grid-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.photo-grid-item:hover img {
  transform: scale(1.03);
  filter: brightness(0.6);
}

/* Caption overlay — slides up from bottom on hover */
.photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  color: white;
  padding: 1.5rem 0.75rem 0.6rem;
  font-size: 0.72rem;
  line-height: 1.5;
  letter-spacing: 0.03em;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.photo-grid-item:hover .photo-caption {
  transform: translateY(0);
}

/* ─── Lightbox ───────────────────────────────────────────── */
.photo-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.photo-lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}

.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 1rem 0.75rem;
  display: flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-btn:hover {
  opacity: 1;
}

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

.lightbox-caption-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 4rem;
  gap: 1rem;
  min-height: 3.5rem;
  box-sizing: border-box;
}

.lightbox-caption-text {
  font-size: 0.85rem;
  line-height: 1.5;
  letter-spacing: 0.03em;
  opacity: 0.9;
  flex: 1;
}

.lightbox-counter {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

/* ─── Gradient blend under the nav ──────────────────────── */
/* Matches the header's dark tone so there's no hard edge */
.photo-page {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, transparent 18%);
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .photo-grid {
    columns: 2 140px;
    column-gap: 0.5rem;
  }

  .photo-grid-item {
    margin-bottom: 0.5rem;
  }

  .lightbox-btn {
    padding: 0.5rem 0.25rem;
  }
}
