/* Hero photos */
.hero-photos {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: 270px;
  height: 310px;
  z-index: 5;
}
.hero-photo-back,
.hero-photo-front {
  position: absolute;
  width: 155px;
  height: 195px;
  object-fit: cover;
  border: 4px solid #fff;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
.hero-photo-back {
  transform: rotate(-8deg);
  top: 0;
  left: 0;
  z-index: 1;
  animation: hero-float-a 12s ease-in-out infinite;
}
.hero-photo-front {
  transform: rotate(5deg);
  top: 85px;
  left: 90px;
  z-index: 2;
  animation: hero-float-b 15s ease-in-out infinite 1.5s;
}
@media (max-width: 767px) {
  .hero-photos {
    right: 0.75rem;
    top: 1.25rem;
    transform: none;
    width: 120px;
    height: 150px;
  }
  .hero-photo-back,
  .hero-photo-front {
    width: 72px;
    height: 90px;
    border-width: 3px;
    border-radius: 0.625rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
  .hero-photo-front {
    top: 36px;
    left: 32px;
  }
}

/* Hero photo float animations (preserve each photo's rotation) */
@keyframes hero-float-a {
  0%, 100% { transform: rotate(-8deg) translate(0, 0); }
  33%       { transform: rotate(-8deg) translate(6px, -10px); }
  66%       { transform: rotate(-8deg) translate(-5px, 5px); }
}
@keyframes hero-float-b {
  0%, 100% { transform: rotate(5deg) translate(0, 0); }
  40%       { transform: rotate(5deg) translate(-7px, -8px); }
  70%       { transform: rotate(5deg) translate(6px, 7px); }
}
@keyframes hero-float-c {
  0%, 100% { transform: rotate(-6deg) translate(0, 0); }
  50%       { transform: rotate(-6deg) translate(8px, -9px); }
}

/* Hero left photo */
.hero-photo-left {
  position: absolute;
  left: 9%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}
.hero-photo-left img {
  width: 155px;
  height: 195px;
  object-fit: cover;
  border: 4px solid #fff;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  transform: rotate(-6deg);
  animation: hero-float-c 13s ease-in-out infinite 0.8s;
}
@media (max-width: 767px) {
  .hero-photo-left {
    left: 0.75rem;
    top: 5rem;
    transform: none;
  }
  .hero-photo-left img {
    width: 72px;
    height: 90px;
    border-width: 3px;
    border-radius: 0.625rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
@media (max-width: 767px) {
  .gallery-item.gallery-hidden {
    display: none;
  }
}
@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.625rem;
  }
}
.gallery-item {
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  background: #ede7f6;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
  opacity: 0.88;
}

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 8, 6, 0.93);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
#lightbox.open {
  display: flex;
}
#lb-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100vw - 8rem);
  max-height: 90vh;
}
#lb-img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 1rem;
  object-fit: contain;
  display: block;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}
#lb-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: background 0.15s;
}
#lb-close:hover { background: rgba(255,255,255,0.22); }
#lb-prev, #lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: background 0.15s;
  user-select: none;
}
#lb-prev { left: 1rem; }
#lb-next { right: 1rem; }
#lb-prev:hover, #lb-next:hover { background: rgba(255,255,255,0.22); }
#lb-counter {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
@media (max-width: 480px) {
  #lb-prev { left: 0.4rem; }
  #lb-next { right: 0.4rem; }
  #lb-img-wrap { max-width: calc(100vw - 5rem); }
}
