/* ==========================================================================
   Shuvatara — Modern Gallery Section
   Scoped under `sh-gallery` so it never collides with the legacy theme CSS.
   The `.gallery-popup-two` class on each tile is required by main.js's
   magnificPopup init — keep it on the anchor.
   ========================================================================== */

.sh-gallery {
  padding: 100px 0;
  background: #fff;
}

.sh-gallery__head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.sh-gallery__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sh-gold, #d4af6a);
  margin-bottom: 14px;
}

.sh-gallery__eyebrow::before,
.sh-gallery__eyebrow::after {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--sh-gold, #d4af6a);
}

.sh-gallery__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.25;
  color: var(--sh-navy, #0b1420);
  margin-bottom: 14px;
}

.sh-gallery__lead {
  font-family: 'Lato', sans-serif;
  font-size: 15.5px;
  line-height: 1.85;
  color: #5c6470;
  margin: 0;
}

.sh-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.sh-gallery__item {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 20px 40px -26px rgba(11, 20, 32, .3);
}

.sh-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.sh-gallery__item:hover img { transform: scale(1.08); }

.sh-gallery__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background: linear-gradient(180deg, rgba(11, 20, 32, 0) 45%, rgba(11, 20, 32, .85) 100%);
  opacity: 0;
  transition: opacity .3s ease;
}

.sh-gallery__item:hover .sh-gallery__overlay { opacity: 1; }

.sh-gallery__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
}

.sh-gallery__zoom {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sh-gold-light, #f1dfb5), var(--sh-gold, #d4af6a));
  color: #241a05;
  font-size: 13px;
}

@media (max-width: 1199px) {
  .sh-gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .sh-gallery { padding: 72px 0; }
  .sh-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
