
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.tile {
  width: 100%;
  aspect-ratio: 1 / 1; /* mantiene los recuadros cuadrados */
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  display: flex;
  justify-content: center;
  align-items: center;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* recorta para llenar el recuadro */
  transition: transform 0.3s ease;
}

.tile img:hover {
  transform: scale(1.05);
}
