#gallery {
  padding-top: 1px;
}
.image{
  width: 33.3333%;
}
.img-wrapper {
  position: relative;
  width: 100%;
  border-radius: 0;
  padding: 1px;
}
.img-wrapper  img{
  border-radius: 0;
}
.img-overlay {
  background: rgba(0,0,0,0.1);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  cursor: pointer;
}

#overlay {
  background: rgba(0,0,0,0.7);
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  // Removes blue highlight
  -webkit-user-select: none;
  -moz-user-select: none;    
  -ms-user-select: none; 
  user-select: none; 
}

#overlay img{
    margin: 0;
    width: auto;
    height: 70%;
    object-fit: contain;
    border-radius: 0;
}
#nextButton {
  color: #fff;
  font-size: 2em;
  transition: opacity 0.8s;
  display: none;
}
#nextButton:hover{
  opacity: 0.5;
}
#prevButton {
  color: #fff;
  font-size: 2em;
  transition: opacity 0.8s;
  display: none;
}
#prevButton:hover{
  opacity: 0.5;
}
#exitButton {
  color: #fff;
  font-size: 2em;
  transition: opacity 0.8s;
  position: absolute;
  top: 15px;
  right: 15px;
}
#exitButton:hover{
  opacity: 0.5;
}

  @media screen and (min-width: 1080px) {
    #gallery {
      padding: 1px;
    }   
  }
    @media screen and (min-width:768px) {
      #overlay img{
        /**width: 60%;**/
      }
    }
    @media screen and (min-width:1200px) {
      #overlay img{
        /**width: 50%;**/
      }
    }
    @media screen and (min-width:768px) {
      #nextButton, #prevButton, #exitButton {
        font-size: 3em;
    }
  }