.eventos-section {
    
    padding: 4rem 2rem;
  }
  
  .container-eventos {
    max-width: 1200px;
    width: 80%;
    margin: 0 auto;
    text-align: left;
    color: var(--color1);
  }
  
  .eventos-title {
    color: var(--color1);
    margin-bottom: 1rem;
    font-size: 2rem;
  }
  
  .gallery-eventos {
    
    padding: 1rem 2rem 4rem 1rem;
  }
  
  .title-eventos {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color1);
    font-size: 2rem;
  }

  


/* Masonry layout */
.masonry-gallery {
    max-width: 1200px;
    width: 80%;
    margin: 0 auto;
    column-count: 3;
    column-gap: 1rem;
  }
  
  .gallery-item {
    position: relative;
    margin-bottom: 1rem;
    cursor: pointer;
    overflow: hidden;
  }
  
  .gallery-item img {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    transition: transform 0.3s ease;
    display: block;
    object-fit:cover;
  }
  
  .gallery-item:hover img {
    transform: scale(1.05);
  }
  
  /* Overlay al hover */
  .gallery-item::after {
    content: "🔍";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 2rem;
    color: #fff;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
  }
  
  .gallery-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  /* Lightbox (carga oculto) */
#lightbox {
  display: none;              /* oculto por defecto */
  position: fixed;
  z-index: 9999;
  inset: 0;                   /* top:0; right:0; bottom:0; left:0 */
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.8);
  justify-content: center;    /* se aplica cuando JS lo ponga en flex */
  align-items: center;
}

/* Al abrir, JS cambiará a display:flex. Si alguna hoja lo pisa, usa esta clase de apoyo */
#lightbox.is-open {
  display: flex !important;   /* garantía ante reglas que lo pisen */
}

#lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
  margin: 0;
}

.close {
  position: absolute;
  top: 20px; right: 40px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

  



@media (max-width: 768px) {
  .container-eventos {
    width: 100%;
  }

 
  .gallery-lugar {
    gap: 1rem;
  }

  .container-bodas,
  .masonry-gallery
  {
    column-count: 2;
    width: 100%;
    padding: 0 0rem;
  }
  .carousel-wrapper{
    width: 90%;
  }
  
}
