/* galeria.css */

/* Estilos básicos */
body {
    font-family: Arial, sans-serif;
}


/*
* Galería de imágenes
*/
.photo-gallery {
    color: #313437;
    background-color: #fff;
  }
  
  .photo-gallery p {
    color: #7d8285;
  }
  
  .photo-gallery h2 {
    font-weight:bold;
    margin-bottom:40px;
    padding-top:40px;
    color:inherit;
  }
  
  @media (max-width:767px) {
    .photo-gallery h2 {
      margin-bottom:25px;
      padding-top:25px;
      font-size:24px;
    }
  }
  
  .photo-gallery .intro {
    font-size:16px;
    max-width:500px;
    margin:0 auto 40px;
  }
  
  .photo-gallery .intro p {
    margin-bottom:0;
  }
  
  .photo-gallery .photos {
    padding-bottom:20px;
  }
  
  .photo-gallery .item {
    padding-bottom:30px;
  }
  

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
}

.gallery-item {
    width: calc(25% - 10px); /* Muestra cuatro imágenes por fila */
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.2s;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* Estilos del Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain; /* Asegura que la imagen mantenga su proporción */
    border-radius: 8px;
}

.close, .prev, .next {
    color: white;
    font-size: 2em;
    position: absolute;
    top: 50%;
    cursor: pointer;
    user-select: none;
}

.close {
    top: 10%;
    right: 5%;
    font-size: 2.5em;
}

.prev {
    left: 5%;
    transform: translateY(-50%);
}

.next {
    right: 5%;
    transform: translateY(-50%);
}
