/* =========================================================
   PINAKA — gallery, carousel, lightbox
   ========================================================= */

/* ---------- homepage hero carousel (Swiper) ---------- */
.hero-carousel{
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-carousel .swiper-slide{
  position: relative;
  height: 440px;
  background: var(--ink-2);
}
.hero-carousel .swiper-slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-carousel .carousel-caption{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.2rem 1.8rem 1.4rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.78), transparent);
  color: #fff;
}
.hero-carousel .carousel-caption h3{
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.3rem;
}
.hero-carousel .carousel-caption p{
  font-size: 0.92rem;
  color: #E8E4D8;
  margin: 0;
  max-width: 560px;
}
.hero-carousel .swiper-button-next,
.hero-carousel .swiper-button-prev{
  color: #fff;
  background: rgba(16,20,28,0.45);
  width: 42px; height: 42px;
  border-radius: 50%;
}
.hero-carousel .swiper-button-next::after,
.hero-carousel .swiper-button-prev::after{ font-size: 1.05rem; }
.hero-carousel .swiper-pagination-bullet{ background: #fff; opacity: 0.6; }
.hero-carousel .swiper-pagination-bullet-active{ opacity: 1; background: var(--gold); }

@media (max-width: 700px){
  .hero-carousel .swiper-slide{ height: 280px; }
  .hero-carousel .carousel-caption{ padding: 1.4rem 1.1rem 1rem; }
}

/* ---------- masonry grid (gallery.html + facilities photo section) ---------- */
.photo-masonry{
  column-count: 3;
  column-gap: 1rem;
}
.photo-masonry-item{
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--ink-2);
}
.photo-masonry-item img{
  width: 100%;
  display: block;
  transition: transform .25s ease;
}
.photo-masonry-item:hover img{ transform: scale(1.03); }
.photo-masonry-item .photo-caption{
  padding: 0.8rem 1rem 1rem;
}
.photo-masonry-item .photo-caption h4{
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
}
.photo-masonry-item .photo-caption p{
  font-size: 0.85rem;
  margin: 0;
}
.section-dark .photo-masonry-item .photo-caption h4{ color: #F2EEE2; }
.section-dark .photo-masonry-item .photo-caption p{ color: var(--slate); }
.section-paper .photo-masonry-item{ background: #fff; border: 1px solid var(--line-light); }
.section-paper .photo-masonry-item .photo-caption h4{ color: var(--ink-text); }
.section-paper .photo-masonry-item .photo-caption p{ color: var(--ink-text-soft); }

@media (max-width: 880px){ .photo-masonry{ column-count: 2; } }
@media (max-width: 540px){ .photo-masonry{ column-count: 1; } }

/* ---------- lightbox ---------- */
.photo-lightbox{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,12,16,0.94);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.photo-lightbox.open{ display: flex; }
.photo-lightbox img{
  max-width: min(90vw, 1000px);
  max-height: 84vh;
  border-radius: 8px;
  object-fit: contain;
}
.photo-lightbox .lightbox-caption{
  position: absolute;
  left: 0; right: 0; bottom: 1.6rem;
  text-align: center;
  color: #EFEFE8;
}
.photo-lightbox .lightbox-caption h4{ color: #fff; margin-bottom: 0.2rem; }
.photo-lightbox .lightbox-caption p{ color: #C9C4B6; margin: 0; font-size: 0.9rem; }
.photo-lightbox .lightbox-close{
  position: absolute;
  top: 1.4rem; right: 1.6rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-empty{ text-align: center; color: var(--ink-text-soft); padding: 2rem 0; }
