
/* Sección principal */
.lugar-section-lugar {
  padding: 4rem 5rem;
  background-color:var(--color5);
}

.container-lugar {
  max-width: 1200px;
  margin: 0 auto;
  gap: 5rem;
  display: flex;
  flex-direction: column;
  padding: 0.5rem 4rem;
  color: var(--color1);
}
.container-lugar strong{
  color: var(--color1);
}

.subtitle-lugar {
  font-size: 1.4rem;
  color: var(--color1);
  margin-bottom: 1rem;
  text-align: left;
  
}

.text-lugar {
  font-size: 1rem;
  margin: 1rem 0 2rem;
  color: var(--color1);
  text-align: left;
  font-weight: 600;
  
  
}



/* Galería */
.gallery-bodas {
  background-color: var(--color6);
  padding: 1rem 0rem;
}

.gallery-bodas .title-bodas {
  text-align: center;
  margin-bottom: 0rem;
  color: var(--color1);
  font-size: 2rem;
}

/* Masonry layout */
.masonry-gallery {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  column-count: 4;
  /* column-gap: 1rem; */
}

.gallery-item {
  position: relative;
  margin-bottom: 1rem;
  cursor: pointer;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  border-radius: 8px;
  transition: transform 0.3s ease;
  display: block;
}

.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) {

  .image-lugar {
    width: 100%;
  }
  .lugar-section-lugar {
    padding: 2rem;
    background-color:var(--color5);
  }
  
  .container-lugar {
    gap: 5rem;
    padding: 0.5rem 0rem;
  }
  .gallery-lugar {
    gap: 1rem;
  }

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