.gallery-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.gallery {
  column-count: 3;     /* 👉 tres columnas en escritorio */
  column-gap: 20px;    /* espacio entre columnas */
  max-width: 1200px;
  width: 100%;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  display: inline-block; /* necesario para que respete el column-count */
  width: 100%;
  margin-bottom: 20px;   /* espacio entre las filas */
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .overlay {
  opacity: 1;
}

/* Tablet: 2 columnas */
@media (max-width: 768px) {
  .gallery {
    column-count: 2;
  }
}

/* Celular: 1 columna */
@media (max-width: 480px) {
  .gallery {
    column-count: 1;
  }
}
