/* ============================================================
   espacio.css — CEA Lanús
   Galería del instituto (aulas, herramientas, escenario)
============================================================ */

/* ESPACIO / GALLERY
============================================================ */
/* -- espacio section -- */
#espacio {
  background: var(--negro-soft);
  padding: 100px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 12px;
  margin-top: 60px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--negro-card);
  cursor: pointer;
}
.gallery-item:nth-child(1) { grid-column: span 6; grid-row: span 2; aspect-ratio: auto; min-height: 360px; }
.gallery-item:nth-child(2) { grid-column: span 6; min-height: 170px; }
.gallery-item:nth-child(3) { grid-column: span 6; min-height: 170px; }
.gallery-item:nth-child(4) { grid-column: span 4; min-height: 200px; }
.gallery-item:nth-child(5) { grid-column: span 4; min-height: 200px; }
.gallery-item:nth-child(6) { grid-column: span 4; min-height: 200px; }

.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: brightness(0.7) saturate(0.8);
}
.gallery-item:hover img { transform: scale(1.05); filter: brightness(0.85) saturate(1.1); }

.gallery-placeholder {
  width: 100%; height: 100%; min-height: inherit;
  background: var(--negro-card);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
  color: rgba(255,255,255,0.15);
  font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
}
.gallery-placeholder i { font-size: 2rem; color: rgba(200,169,81,0.15); }

.gallery-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.8) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.4s;
  display: flex; align-items: flex-end; padding: 20px;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-label {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--dorado);
}

/* ============================================================
   RESPONSIVE
============================================================ */
   

@media (max-width: 768px) {
  .gallery-grid { display: flex; flex-direction: column; }
  .gallery-item { min-height: 200px; }
}
