/* =============================================================
   gallery.css – Unique Gallery Styling
   ============================================================= */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Clickable gallery card (links to sub-gallery pages) */
.gallery-item-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}
.gallery-item-link .gallery-item {
  height: 100%;
}

/* Back link on sub-gallery pages */
.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: #b45309;
  font-weight: 600;
  text-decoration: none;
}
.back-link:hover {
  text-decoration: underline;
}

/* Photo grid (sub-gallery pages) */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.photo-tile {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  background: #fef7ed;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.photo-tile img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.photo-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(180, 83, 9, 0.25);
}
.photo-tile:hover img {
  transform: scale(1.05);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.open {
  display: flex;
}
.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}
.lightbox-close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: white;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 480px) {
  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.6rem;
  }
  .photo-tile img {
    height: 140px;
  }
}
.gallery-hero {
  background: linear-gradient(135deg, #b45309, #d97706);
  color: white;
  text-align: center;
  padding: 1.5rem 1.5rem;
  margin-bottom: 2.5rem;
  border-radius: 25px;
  box-shadow: 0 15px 35px rgba(180, 83, 9, 0.3);
}
.gallery-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.gallery-hero p {
  font-size: 1.3rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}
.gallery-item {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  cursor: pointer;
}
.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.1), rgba(217, 119, 6, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}
.gallery-item:hover::before {
  opacity: 1;
}
.gallery-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}
.gallery-placeholder {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, #fef7ed, #fff7ed);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.gallery-placeholder::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(180, 83, 9, 0.1), transparent);
  transform: rotate(45deg);
  transition: transform 0.6s ease;
}
.gallery-item:hover .gallery-placeholder::before {
  transform: rotate(45deg) translateX(100%);
}
.gallery-placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #b45309;
  font-weight: 600;
  font-size: 1.2rem;
  z-index: 2;
  position: relative;
}
.gallery-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #b45309, #d97706);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: white;
  font-size: 1.5rem;
}
.gallery-caption {
  padding: 2rem;
  background: white;
  position: relative;
}
.gallery-caption h3 {
  color: #b45309;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.gallery-caption p {
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}
.gallery-category {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #b45309, #d97706);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 3;
}
.gallery-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 4rem 0;
  padding: 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.gallery-stat {
  text-align: center;
}
.gallery-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #b45309;
  display: block;
}
.gallery-stat-label {
  font-size: 1rem;
  color: #6b7280;
  margin-top: 0.5rem;
}
/* Responsive Design */
@media (max-width: 768px) {
  .gallery-hero {
    padding: 1.25rem 1rem;
  }

  .gallery-hero h1 {
    font-size: 2rem;
  }

  .gallery-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .gallery-placeholder {
    height: 220px;
  }

  .gallery-caption {
    padding: 1.5rem;
  }

  .gallery-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
}
@media (max-width: 480px) {
  .gallery-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery-placeholder {
    height: 200px;
  }

  .gallery-hero h1 {
    font-size: 2rem;
  }
}
