/* ==========================================================================
   gallery.css — Página de galería de fotos de un cliente
   ========================================================================== */

/* La barra superior (.gallery-bar) vive en components.css: la usan todas las páginas internas */

.gallery-head {
  padding: 48px var(--gutter) 64px;
}

.gallery-head .label {
  margin-bottom: 20px;
}

.gallery-head__title {
  margin: 0;
}

.gallery-head__summary {
  margin: 12px 0 0;
  font-size: var(--fs-body);
  color: var(--color-muted);
}

.gallery__photos {
  display: flex;
  flex-direction: column;
}

.gallery-foot {
  display: flex;
  justify-content: center;
  padding: 96px var(--gutter);
}

/* --- Celular: collage en lugar de una foto por pantalla ---
   Horizontales a todo el ancho (2 columnas), verticales a media columna.
   Las filas (.photo-row) se "deshacen" con display: contents. */
@media (max-width: 640px) {
  .gallery__photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 4px;
    padding: 0 4px;
  }

  .gallery__photos .photo-row {
    display: contents;
  }

  .gallery__photos .photo-full {
    grid-column: span 2;
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .gallery__photos .photo-row__item {
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .gallery__photos .photo-sign {
    left: 12px;
    bottom: 12px;
  }

  .gallery__photos .photo-sign__name {
    font-size: 14px;
  }
}
