/* ============================================================
   GALERÍA DEL RETIRO — Grid estático de fotos
   v4.0.0 | 2026-05-12 — Reescritura limpia sin carrusel
   ============================================================ */

/* ── Sección wrapper ── */
.section--galeria {
  background: #f8f5ef;
  padding: var(--spacing-section, 80px) 0;
  overflow: hidden;
}
.section--galeria .section__title--dark,
.section--galeria .section__subtitle--dark { color: #1a1a1a; }
.section--galeria .section__eyebrow        { color: var(--color-gold, #C9A84C); }

/* ── Grid 4 columnas ── */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}

/* ── Cada item ── */
.galeria-item {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 4 / 3;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  cursor: pointer;
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s ease;
}

/* ── Overlay con label ── */
.galeria-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.78));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

/* ── Hover: zoom + label visible ── */
@media (hover: hover) and (pointer: fine) {
  .galeria-item:hover img {
    transform: scale(1.06);
  }
  .galeria-item:hover figcaption {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── En móvil: label siempre visible ── */
@media (hover: none) {
  .galeria-item figcaption {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── CTA bajo galería ── */
.galeria-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 36px 0 0;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.galeria-cta__text {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: clamp(17px, 2.2vw, 23px);
  font-style: italic;
  color: #1a1a1a;
  margin: 0;
}

/* ── Responsive tablet: 2×2 ── */
@media (max-width: 768px) {
  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .galeria-cta {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
}

/* ── Responsive móvil pequeño: 1 columna ── */
@media (max-width: 400px) {
  .galeria-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .galeria-item {
    aspect-ratio: 16 / 9;
  }
}
