/* ===== GALLERY HERO ===== */
.gallery-hero {
  position: relative;
  height: 320px;
  background: url("../image/temple.jpeg") center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Overlay */
.gallery-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

/* Content */
.gallery-hero-content {
  position: relative;
  text-align: center;
  color: #fff;
}

.gallery-hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.gallery-hero-content p {
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.gallery-section {
  background: #faf7f2;
}

.gallery-filter {
  list-style: none;
  padding: 0;
}

.gallery-filter li {
  display: inline-block;
  margin: 0 12px;
  cursor: pointer;
  font-weight: 500;
  color: #777;
  position: relative;
}

.gallery-filter li.active,
.gallery-filter li:hover {
  color: #c0392b;
}

.gallery-filter li.active::after {
  content: "";
  width: 100%;
  height: 2px;
  background: #c0392b;
  position: absolute;
  left: 0;
  bottom: -6px;
}

.gallery-img {
  overflow: hidden;
  border-radius: 6px;
}

.gallery-img img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-img:hover img {
  transform: scale(1.08);
}

.gallery-item {
  display: block;
}

.container-xxl {
  position: relative;
  z-index: 2;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1550px; /* wider hero container for large screens */
  }
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75); /* 👈 opacity here */
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

.lightbox-nav span {
  position: absolute;
  top: 50%;
  font-size: 50px;
  color: #fff;
  cursor: pointer;
  user-select: none;
  transform: translateY(-50%);
}

.lightbox-nav .prev {
  left: 30px;
}

.lightbox-nav .next {
  right: 30px;
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  color: #fff;
  font-size: 14px;
  opacity: 0.8;
}

/* ===== MOBILE / TABLET RESPONSIVE ===== */
@media (max-width: 991px) {
  /* Gallery Hero */
  .gallery-hero {
    height: 220px; /* smaller hero */
    padding: 0 15px;
  }

  .gallery-hero-content h1 {
    font-size: 2rem; /* smaller heading */
  }

  .gallery-hero-content p {
    font-size: 1rem;
  }

  /* Gallery Filter */
  .gallery-filter li {
    margin: 0 8px;
    font-size: 14px;
  }

  /* Gallery Images */
  .gallery-img img {
    height: 180px; /* shorter images */
  }

  .gallery-item {
    margin-bottom: 15px;
  }
}

/* SMALL PHONES */
@media (max-width: 575px) {
  .gallery-hero {
    height: 260px;
  }

  .gallery-hero-content h1 {
    font-size: 1.5rem;
  }

  .gallery-hero-content p {
    font-size: 0.9rem;
  }

  .gallery-filter li {
    margin: 0 5px;
    font-size: 13px;
  }

  .gallery-img img {
    height: 240px;
  }

  .lightbox-nav span {
    font-size: 35px;
  }

  .lightbox-close {
    font-size: 30px;
    top: 10px;
    right: 20px;
  }

  .lightbox-counter {
    font-size: 12px;
  }
}
