/* ==========================================
   GALLERY PAGE STYLES
   ========================================== */

/* ---------- GALLERY HERO ---------- */
.gallery-hero {
  padding: 120px 0 50px;
  background: var(--dark-gray);
  text-align: center;
}

.gallery-hero__title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.gallery-hero__subtitle {
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- GALLERY GRID ---------- */
.gallery {
  padding: 40px 0 60px;
  background: var(--light-gray);
}

.gallery__grid {
  columns: 2;
  column-gap: 12px;
}

.gallery__item {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery__item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition);
}

.gallery__item:hover img {
  transform: scale(1.05);
}

/* ---------- GALLERY CTA ---------- */
.gallery-cta {
  padding: 60px 0;
  background: var(--dark-gray);
  text-align: center;
}

.gallery-cta h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.gallery-cta p {
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.gallery-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
}

.lightbox--open {
  display: flex;
}

.lightbox__content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox__content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  padding: 8px;
  transition: color var(--transition);
}

.lightbox__close:hover {
  color: var(--orange);
}

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 16px 14px;
  border-radius: var(--radius);
  z-index: 10;
  transition: background var(--transition);
}

.lightbox__prev:hover,
.lightbox__next:hover {
  background: var(--orange);
}

.lightbox__prev {
  left: 12px;
}

.lightbox__next {
  right: 12px;
}

.lightbox__counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---------- RESPONSIVE: TABLET ---------- */
@media (min-width: 768px) {
  .gallery-hero__title {
    font-size: 2.8rem;
  }

  .gallery__grid {
    columns: 3;
    column-gap: 16px;
  }

  .gallery__item {
    margin-bottom: 16px;
  }

  .gallery-cta__actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* ---------- RESPONSIVE: DESKTOP ---------- */
@media (min-width: 1024px) {
  .gallery-hero {
    padding: 140px 0 60px;
  }

  .gallery {
    padding: 60px 0 80px;
  }

  .gallery__grid {
    columns: 4;
    column-gap: 20px;
  }

  .gallery__item {
    margin-bottom: 20px;
    border-radius: var(--radius-lg);
  }

  .gallery-cta {
    padding: 80px 0;
  }
}
