/* reset all elements */


.gallery{
  list-style-type: none;display: inline;
    list-style: none;
    width: 100%;
    min-height: 100%;
    float: center;
    margin: 0 0px 0px 0;
    text-align: center;
    justify-content: center; 
    align-items: center;
}

.gallerym{
  list-style-type: none;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery .image-box{
  padding: 0px;
  margin: 0px;
  cursor: pointer;
  transition: 0.3s ease all;
  justify-content: center;
}

.links {
float: left;
margin-right: 50px;
} 

.gallery .image-box:hover{
  filter: none;
}

.gallery .image-box img{
  height: auto;
  border-radius: 5px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
  transition: all .3s;
  
}
.gallerym .image-box img{
height: auto;
  border-radius: 5px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
  transition: all .3s;
}

/* style the lightbox */
.lightbox{
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotateY(90deg);
  transition: 0.5s ease all;
  opacity: 0;
}

.lightbox .overlay{
  position: absolute;
  background: rgba(0,0,0,0.8);
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.lightbox .lightbox-image{
  position: relative;
  border: 1px solid white;
  max-width: 100vw;
  max-height: 100vh;
  transition: 0.7s ease all;
  transition-delay: 0.5s;
  opacity: 0;
  transform: scale(0.8);
}

.lightbox #close{
  position: absolute;
  top: 10px;
  right: 10px;
  height: 40px;
  width: 40px;
  border: none;
  border-radius: 50%;
  font-size: 30px;
  cursor: pointer;
  background: white;
}



.lightbox .thumbnails .thumbnail{
  height: 40px;
  width: 40px;
  border: 1px solid black;
  margin: 10px;
  position: relative;
  cursor: pointer;
  opacity: 0.5;
  border-radius: 50%;
}

.lightbox .thumbnails .thumbnail:hover{
  opacity: 1;
}

/* the activation class */

.show-it{
  transform: rotateY(0deg);
  opacity: 1;
}

.show-it .lightbox-image{
  opacity: 1;
  transform: scale(1);
}

.show-it .thumbnails{
  opacity: 1;
  transform: translateX(0px);
}
