/* galer�a.css - versión integrada con estilo general */

/* --- Variables / colores --- */
:root{
  --bg-header: #1a1f2e;
  --gold: #d4b963;
  --muted: #777;
  --accent: #f7b500;
}

/* ==== Contenedor principal ==== */
.galeria {
  text-align: center;
  padding: 2.5rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  font-family: 'Playfair Display Regular', Georgia, serif;
  color: #222;
}

.galeria h2 {
  font-size: 2.2rem;
  color: var(--bg-header);
  margin: 0 0 0.25rem 0;
  font-family: 'Playfair Display Black', Georgia, serif;
}

.galeria p {
  color: var(--muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

/* ==== Grid de miniaturas ==== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  align-items: start;
}

.thumb {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: block;
  background: #faf6f2;
}

/* mejora si la altura varía en móvil */
@media (max-width:420px){
  .thumb { height: 160px; }
}

.thumb:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 22px rgba(0,0,0,0.15);
}

/* ==== QR / subida ==== */
.qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  padding: 1rem;
  background: rgba(255,255,255,0.85);
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

/* imagen QR responsiva — evita scroll */
.qr-box img.qr {
  width: 200px;            /* tamaño por defecto */
  max-width: 42vw;        /* se reduce en pantallas pequeñas */
  height: auto;
  border-radius: 8px;
  border: 4px solid rgba(212,185,99,0.15); /* toque dorado suave */
  background: #fff;
  display: block;
}

/* texto y enlace */
.qr-box h3 { margin: 0; color: var(--bg-header); font-size: 1.1rem; }
.qr-box a {
  color: var(--bg-header);
  text-decoration: none;
  font-weight: 700;
  margin-top: 0.25rem;
}
.qr-box a:hover { color: var(--accent); }

/* ==== Lightbox ==== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0; /* top:0;left:0;right:0;bottom:0; */
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox img {
  max-width: 94%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0,0,0,0.6);
}

/* ==== Botón estilado (opcional) ==== */
.btn {
  display: inline-block;
  background: var(--gold);
  color: #111;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid rgba(0,0,0,0.03);
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }

/* ==== Ajustes responsivos ==== */
@media (max-width: 880px) {
  .galeria { padding: 1.6rem 0.8rem; }
  .qr-box img.qr { width: 180px; max-width: 46vw; }
}
.thumb-container {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: #f9f9f9;
}

.thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
