/* ================================================
   Photo Gallery Section — gallery.css
   Khatu Shyam Darbar Hoshiarpur
   ================================================ */

/* ── Section wrapper ── */
.gallery-section {
  background: #fdf8f0;
  padding-top: 80px;
  padding-bottom: 80px;
}

/* ── Section header ── */
.gallery-section .section__header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 10px;
}

.gallery-section .section__header p {
  color: #666;
  font-size: 15px;
  max-width: 600px;
  margin: 0 auto;
}

.gallery-section .section__header .gallery-label {
  color: #b8860b;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 13px;
  display: block;
  margin-bottom: 8px;
}

/* ── Upload / Add Image bar ── */
.gallery-upload-bar {
  margin-bottom: 30px;
}

.gallery-upload-bar small {
  color: #999;
  font-size: 13px;
}

/* ── Individual card ── */
.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  background: #000;

  /* Force every card to the exact same 4:3 aspect ratio */
  width: 100%;
  padding-top: 75%; /* 4:3 ratio = 75% of width */
}

/* ── Image — fills the fixed aspect-ratio box perfectly ── */
.gallery-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

/* ── Anchor inside the card also needs to fill the box ── */
.gallery-card a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ── Zoom on hover ── */
.gallery-card:hover img {
  transform: scale(1.07);
}

/* ── Dark overlay with icon on hover ── */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 78, 146, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  color: #ffffff;
  font-size: 2rem;
}

/* ── Caption bar ── */
.gallery-caption {
  padding: 8px 12px;
  font-size: 13px;
  color: #555;
  text-align: center;
  background: #fff;
  border-top: 1px solid #f0e8d5;
  text-transform: capitalize;
}

/* ── Responsive: tablet ── */
@media (max-width: 991px) {
  .gallery-card {
    padding-top: 75%; /* keep same 4:3 ratio */
  }
}

/* ── Responsive: mobile ── */
@media (max-width: 575px) {
  .gallery-section {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .gallery-card {
    padding-top: 75%; /* keep same 4:3 ratio */
  }

  .gallery-section .section__header h2 {
    font-size: 1.5rem;
  }
}