
.es {
    color:#000;
    }
    
  footer {
    background: #000000;
    text-align: center;
    color: #fff;
    padding: 0% 1% 0% 1%;
    }
        
  *{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  h1{
    font-weight: 400;
    text-align: center;
    padding: 100px 0 0 0;
    font-size: 40px;
  }
  
  .linea{
    background: fuchsia;
    height: 5px;
    width: 100px;
    display: block;
  }

   .galeria{
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
      width: 95%;
      margin: auto;
      grid-gap: 10px;
      padding: 40px 0;
      overflow: hidden;
  }

.galeria > a{
    display: block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 6px rgba(0, 0, 0, .5);

}

.galeria img{
    width: 100%;
    vertical-align: top;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s;
}

.galeria a:hover img{
    filter: blur(0.5px);
    transform: rotate(2deg) scale(1.2);
}

.light-box{
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .5);
    transition: transform .3s ease-in-out;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0);
    padding: 100px 0 0 0;
}

.light-box img{
    width: 75vw;
    max-height: 70vh;
}

.light-box:target{
  transform: scale(1);
  padding: 100px 0 0 0;
}

.light-box2{
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, .5);
  transition: transform .3s ease-in-out;
  width: 100%;
  height: 100vh;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: scale(0);
  padding: 100px 0 0 0;
}

.light-box2 img{
  width: 40vw;
  max-height: 125vh;
}

.light-box2:target{
  transform: scale(1);
  padding: 100px 0 0 0;
}

.close{
    display: block;
    position: absolute;
    top: 107px;
    right: 15px;
    background: rgb(170, 0, 0);
    color: #fff;
    text-decoration: none;
    width: 50px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    padding: 0 0 25px 0;
}

.next{
  display: block;
  background: rgb(42, 42, 122);
  color: #fff;
  height: 55px;
  width: 55px;
  line-height: 30px;
  text-decoration: none;
  text-align: center;
  padding: 12px 0px 0px 0px;
}

/* 
@media screen and (max-width:400px){
  .galeria{
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
 
}
*/