#gallery {
  @media screen and (min-width: 991px) {
    padding: 0px 0px 0 0px;
  }
}

.img-wrapper {
  position: relative;
  img {
    width: 100%;
  }
}
.img-overlay {
  background: rgba(0, 0, 0, 0.7);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
}
.img-overlay i {
  color: #fff;
  font-size: 3em;
}
.row {
    display: flex; 
    flex-wrap: wrap;
}

.gallery_thumb {
    width:  calc((100% / 5) - 10px);
    margin: 5px;
    overflow: hidden;
}

#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; 
  img {
    margin: 0;
    width: 80%;
    height: auto;
    object-fit: contain;
    padding: 5%;
    @media screen and (min-width:768px) {
        width: 75%;
    }
    @media screen and (min-width:1200px) {
        width: 75%;
    }
  }
}

#nextButton {
  color: #fff;
  font-size: 2em;
  transition: opacity 0.8s;
     display: none;
  &:hover {
    opacity: 0.7;

  }
  @media screen and (min-width:768px) {
    font-size: 3em;
  }
}

#prevButton {
  color: #fff;
  font-size: 2em;
  transition: opacity 0.8s;
     display: none;
  &:hover {
    opacity: 0.7;
  }
  @media screen and (min-width:768px) {
    font-size: 3em;
  }
}

#exitButton {
  color: #fff;
  font-size: 2em;
  transition: opacity 0.8s;
  position: absolute;
  top: 15px;
  right: 15px;
  &:hover {
    opacity: 0.7;
  }
  @media screen and (min-width:768px) {
    font-size: 3em;
  }
}

@media only screen and (max-width: 968px) { 
.gallery_thumb {
    width:  calc((100% / 4) - 10px);
    margin: 5px;
    overflow: hidden;
}
}

@media only screen and (max-width: 480px) { 
.gallery_thumb {
    width:  calc((100% / 3) - 10px);
    margin: 5px;
    overflow: hidden;
}
}