/* ============================================================
   GALLERY PAGE
   ============================================================ */
.page-hero {
  padding: 10rem 0 5rem;
  text-align: center;
  background: var(--off-white);
  border-bottom: 1px solid var(--gray-light);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 400;
  color: var(--dark);
  margin: 0.5rem 0 1rem;
}

.page-hero p {
  color: var(--gray);
  font-weight: 300;
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.75;
}
   
.gallery-section {
  padding: 4rem 0 0;
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 6px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--dark);
}

.gallery-item--wide,
.gallery-item--tall,
.gallery-item--full {
  grid-column: unset;
  grid-row: unset;
  height: unset;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
  display: block;
  /* object-position: center 75%; */
  
}

.gallery-item--one img {
  object-position: center 70% !important;
}

.gallery-item--two img {
  object-position: center 19% !important;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-overlay::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: scale(0.7);
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.75);
}

.gallery-item:hover .gallery-overlay {
  background: rgba(0,0,0,0.25);
}

.gallery-item:hover .gallery-overlay::after {
  opacity: 1;
  transform: scale(1);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.lightbox.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity var(--transition);
  font-family: var(--font-body);
}
.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  opacity: 0.7;
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(92,225,230,0.2);
  border-color: var(--cyan);
  opacity: 1;
}

/* ============================================================
   GALLERY RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }

  .gallery-item--wide  { grid-column: span 2; }
  .gallery-item--tall  { grid-row: span 1; }
  .gallery-item--full  { grid-column: span 2; height: 260px; }

  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .gallery-item--wide,
  .gallery-item--full  { grid-column: span 1; }
  .gallery-item--tall  { grid-row: span 1; }
}