 
.container {
    max-width: 1200px;
    margin: 5% auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-sizing: border-box;
    margin-top: 0px !important;
  }
  
  .text-center {
    text-align: center;
    margin-bottom: 1em;
  }
  
  .lightbox-gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .lightbox-gallery div > img {
    cursor: pointer;
    max-width: 100%;
    display: block;
  }
  
  .lightbox-gallery div {
    margin: 10px;
    flex-basis: 180px;
  }
  
  @media only screen and (max-width: 480px) {
    .lightbox-gallery {
      flex-direction: column;
      align-items: center;
    }
  
    .lightbox > div {
      margin-bottom: 10px;
    }
  }

  
  /*Lighbox CSS*/
  
  .lightbox {
    display: none;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    padding-top: 30px;
    box-sizing: border-box;
  }
  
  .lightbox img {
    display: block;
    margin: auto;
    width: 100%;
   

  }
   /*La imagen este centrada verticalmente*/
  .lightbox img {
    max-height: 80%;
    max-width: 80%;
    margin: auto;
    display: block;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .lightbox .caption {
    margin: 15px auto;
    width: 50%;
    text-align: center;
    font-size: 1em;
    line-height: 1.5;
    font-weight: 700;
    color: #eee;
  }
  

  
  /*colocar next y prev a los costados de la imagen*/
  .lightbox .next, .lightbox .prev {
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    cursor: pointer;
  }

  .lightbox .next {
    right: 0;
    border-radius: 3px 0 0 3px;
  }

  .lightbox .prev {
    left: 0;
    border-radius: 3px 0 0 3px;
  }

  .lightbox .next:hover, .lightbox .prev:hover {
    background-color: rgba(0, 0, 0, 0.8);
  }

  .lightbox .close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
  }

  .lightbox .close:hover,
  .lightbox .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
  }

  .lightbox .numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
  }

  .lightbox .demo {
    opacity: 0.6;
  }

  .lightbox .active,
  .lightbox .demo:hover {
    opacity: 1;
  }

  .lightbox .active {
    border: 3px solid #fff;
  }

  .lightbox .caption-container {
    text-align: center;
    background-color: #222;
    padding: 2px 16px;
    color: white;
  }

  .lightbox .row:after {
    content: "";
    display: table;
    clear: both;
  }

  