body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #fdfaf6;
  margin: 0;
  padding: 0;
}

.galeria-eventos {
  padding: 30px;
  max-width: 1000px;
  margin: auto;
}

.galeria-eventos h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 30px;
  color: #8b2f02;
}

.evento {
  margin-bottom: 20px;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  overflow: hidden;
}

.titulo-evento {
  background-color: #8b2f02;
  color: white;
  padding: 15px;
  margin: 0;
  font-size: 1.2em;
  cursor: pointer;
  transition: background 0.3s;
}

.titulo-evento:hover {
  background-color: #a63d0e;
}

.imagenes-evento {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  padding: 15px;
  justify-content: center;
}

.imagenes-evento img {
  width: 200px;
  border-radius: 8px;
  transition: transform 0.3s;
  object-fit: cover;
}

.imagenes-evento img:hover {
  transform: scale(1.05);
}
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 10px; /* Añadido para que no quede pegado a los bordes */
  box-sizing: border-box;
}

.lightbox img {
  max-width: 100%;    /* Que no exceda el ancho de la pantalla */
  max-height: 100%;   /* Que no exceda la altura de la pantalla */
  width: auto;        /* Mantiene proporción original */
  height: auto;       /* Mantiene proporción original */
  border-radius: 10px;
  object-fit: contain; /* Escala sin deformar */
}

/* Para que el botón cerrar quede siempre visible */
.cerrar-lightbox {
  position: fixed; /* Fixed para que no se mueva al hacer scroll */
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  z-index: 1001;
}

/* Responsive extra para móviles */
@media (max-width: 600px) {
  .lightbox {
    padding: 5px;
  }
  .cerrar-lightbox {
    font-size: 30px;
    top: 10px;
    right: 15px;
  }
}
.video-miniatura {
  width: 200px;
  border-radius: 8px;
  transition: transform 0.3s;
  object-fit: cover;
  cursor: pointer;
}

.video-miniatura:hover {
  transform: scale(1.05);
}
