/* ============================================
   ANIMATIONS & LIGHTBOX — animations.css
   ============================================ */

/* Fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in.delay-1 { transition-delay: 0.1s; }
.fade-in.delay-2 { transition-delay: 0.2s; }
.fade-in.delay-3 { transition-delay: 0.3s; }
.fade-in.delay-4 { transition-delay: 0.4s; }

/* Hamburger open state */
.hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.94);
  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; }

.lb-img-wrap { max-width: 90vw; max-height: 85vh; }
.lb-img-wrap img { max-width: 90vw; max-height: 85vh; object-fit: contain; }

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  cursor: pointer;
  transition: all 0.2s;
}
.lb-close {
  top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
}
.lb-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); padding: 1rem 1.2rem; font-size: 1.2rem; }
.lb-next { right: 1.5rem; top: 50%; transform: translateY(-50%); padding: 1rem 1.2rem; font-size: 1.2rem; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
}
