#gallery {
  padding-top:0;
}

#gallery .row{padding:0; margin:0;}
#gallery .row .image{padding:0; margin:0;}






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

.img-wrapper {
  position: relative;
  margin-top:0;
}
.img-wrapper img {
  width: 100%;
  vertical-align: bottom;
}

.img-overlay {
  background:rgba(0, 0, 0, 0.7);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: inline-block;
  opacity: 0;
  text-align: center;
  padding:110px 12px 0;
}
.img-overlay i {color:#ccc;font-size: 2em;padding-bottom:48px; cursor:pointer; transition:all 500ms ease-in-out;}
.img-overlay i:hover{color:#12bbdb;}


.img-overlay h3{font-size:20px; line-height:25px; text-transform:uppercase; color:#fff; padding:0; margin:0;}


#overlay {
  background:rgba(0, 0, 0, 0.85);
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
#overlay img {
  margin: 0;
  width: 80%;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
  padding: 5%;
}

#overlay h2{position: absolute;bottom: 50px;color:#fff;text-transform: uppercase;font-size: 28px;line-height: 32px;}
#overlay h2:after{display:none;}


@media screen and (min-width: 768px) {
  #overlay img {
    width: 60%;
  }
}
@media screen and (min-width: 1200px) {
  #overlay img {
    width: 50%;
  }
}

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

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

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



@media screen and (max-width:600px) {
#overlay h2{bottom:96px;}


}

@media screen and (max-width:401px) {
#overlay h2{bottom:140px;font-size: 22px;line-height: 32px;}


}

