/* ESTILOS GALERÍA MOBILE-FIRST */

.galeria-section {
  padding: 1.5rem 1rem;
}

.galeria-section h2 {
  text-align: center;
  color: #8B2500;
  margin-bottom: 1rem;  
  
  text-shadow:
  2px 1px 0px rgba(0, 0, 0, 0.8),
  4px 0px 10px rgba(255, 255, 255, 0.6),
  -4px 4px 10px rgba(255, 255, 255, 0.3)
}

.galeria-section h3 {
	color: black;

	text-align: center;
	
	margin-bottom: 1rem;  
  
	text-shadow:
    0 0 3px #000,
    2px 2px 6px rgba(255,255,255,0.2);
  
}	
	
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}

.galeria-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow:
    0 0 5px rgba(255,255,255,0.8),
    2px 2px 6px rgba(0,0,0,0.6),
    -2px -2px 6px rgba(0,0,0,0.6),
    0 0 8px rgba(255,255,255,0.4);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.galeria-img:hover {
  transform: scale(1.05);
}

.fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sentinela para scroll progresivo */
.sentinela {
  height: 1px;
}

/* Responsive: más columnas en pantallas grandes */
@media (min-width: 480px) {
  .galeria-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .galeria-img {
    height: 110px;
  }
}

@media (min-width: 768px) {
  .galeria-img {
    height: 130px;
  }
}

@media (min-width: 1024px) {
  .galeria-img {
    height: 150px;
  }
}

.galeria-img.expandida {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.1);
  width: auto;
  max-width: 90%;
  height: 60vh;
  z-index: 1000;
  box-shadow: 0 0 20px rgba(0,0,0,0.7);
  transition: transform 0.4s ease, box-shadow 0.3s ease;
  border-radius: 12px;
}

.expandida {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.1);
  width: auto;
  max-width: 90%;
  height: 60vh;
  z-index: 1000;
  box-shadow: 0 0 20px rgba(0,0,0,0.7);
  transition: transform 0.4s ease, box-shadow 0.3s ease;
  border-radius: 12px;
}
