/* ═══════════════════════════════════════════
   GALLERY PAGE — extra styles
   (builds on top of style.css)
═══════════════════════════════════════════ */

/* ── PAGE HEADER ── */
.page-header {
  padding: calc(var(--header-h) + 4rem) 4rem 3rem;
  border-bottom: 1px solid var(--ink-faint);
}

.page-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 200;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: 0.8rem;
}

/* Gallery page — header always dark */
.gallery-page #site-header .nav-logo a,
.gallery-page #site-header .nav-name,
.gallery-page #site-header .nav-item {
  color: var(--ink-mid);
}

/* ── GALLERY SECTION ── */
.gallery-page-section {
  padding: 3rem 4rem 6rem;
}

/* Cursor pointer on all cards */
.gallery-card {
  cursor: pointer;
}

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 8, 0.92);
  cursor: zoom-out;
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transform: scale(0.96);
  transition: transform 0.3s ease;
}

.lightbox.open .lightbox-content {
  transform: scale(1);
}

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

.lightbox-caption {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  background: none;
  border: none
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: #fff;
}

/* ── LIGHTBOX 导航箭头 ── */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  font-size: 2rem;
  line-height: 1;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

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

.lightbox-prev:hover,
.lightbox-next:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── 底部小圆点 ── */
.lightbox-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.25rem;
}

.lightbox-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-dot.active {
  background: rgba(255, 255, 255, 0.8);
}

/* Prevent body scroll when lightbox open */
body.lightbox-open {
  overflow: hidden;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .page-header {
    padding: calc(var(--header-h) + 3rem) 2rem 2.5rem;
  }

  .gallery-page-section {
    padding: 2.5rem 2rem 5rem;
  }
}

@media (max-width: 640px) {
  .page-header {
    padding: calc(var(--header-h) + 2rem) 1.5rem 2rem;
  }

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