/* ===========================
   PACIFIC 34 — GALERIE CSS
   =========================== */

/* ── Hero ── */
.page-hero {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 70px;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  animation: heroZoom 12s ease-out forwards;
}

.page-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(2,10,18,0.55) 0%,
    rgba(5,20,40,0.4) 50%,
    rgba(2,10,18,0.85) 100%
  );
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  animation: heroFadeUp 1s ease both;
  animation-delay: 0.3s;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-bottom: 16px;
}

/* ── Grille ── */
.gallery-page-section {
  background: rgba(5,15,26,0.88);
  padding: 72px 0 90px;
}

.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery-page-item {
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  position: relative;
}

.gallery-page-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(2,10,18,0);
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-page-item:hover::after {
  background: rgba(2,10,18,0.3);
}

.gallery-page-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: brightness(0.82) saturate(0.9);
}

.gallery-page-item:hover img {
  transform: scale(1.06);
  filter: brightness(0.95) saturate(1.1);
}

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

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

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

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 0 80px rgba(0,0,0,0.8);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(10,29,51,0.8);
  border: 1px solid var(--border-dim);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-bright);
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev  { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 24px; top: 50%; transform: translateY(-50%); }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(14,37,64,0.9);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .gallery-page-grid { grid-template-columns: repeat(3, 1fr); }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
}

@media (max-width: 600px) {
  .page-hero { height: 280px; }
  .gallery-page-grid { grid-template-columns: repeat(2, 1fr); }
}