.inknite_gallery{
  display: block;
  clear: both;
  width: 100%;
  padding: 0 7% 0 7%;
    margin-bottom: 50px;
}
.inknite_gallery .inknite_gallery_item{
  display: inline-block;
  width: 29%;
  margin-left: 1.5%;
  margin-right: 1.5%;
  vertical-align: middle;
  padding: 0 !important;
  position: relative;
  margin-bottom: 20px;
  overflow: hidden;
  cursor: nesw-resize;
}

.inknite_gallery .inknite_gallery_item:hover img{
  transform: scale(1.1,1.1);
}

.inknite_gallery .inknite_gallery_item img{
  position: relative;
  border: 0;
  margin: 0;
  min-width: 100%;
  max-width: 100%;
  transition: all 0.3s cubic-bezier(.56,.2,.23,.89);
}

/*LIGHTBOX*/

#inknite_gallery_lightbox{
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1000;
  display: flex;
  justify-content: center;
  align-items: center;
}
#inknite_gallery_lightbox.hidden{
  z-index: -1000;
  opacity: 0;
}
#inknite_gallery_lightbox.shown{
  z-index: 10000;
  opacity: 1;
  width: 100%;
  height: 100vh;
}
#inknite_gallery_lightbox .image_container{
  height: 85vh;
  position: relative;
  z-index: 100;
  opacity: 0;
  -webkit-box-shadow: 0px 0px 96px 22px rgba(0,0,0,0.75);
  -moz-box-shadow: 0px 0px 96px 22px rgba(0,0,0,0.75);
  box-shadow: 0px 0px 96px 22px rgba(0,0,0,0.75);
  transform: scale(1.2,1.2);
  transition-delay: 1.3s;
  transition: all 0.7s cubic-bezier(.56,.2,.23,.89);
}
#inknite_gallery_lightbox.shown .image_container{
  transform: scale(1,1);
  opacity: 1;
}
#inknite_gallery_lightbox.hidden .image_container{
  transform: scale(1.2,1.2);
  opacity: 0;
}
#inknite_gallery_lightbox .image_container .image_item{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
#inknite_gallery_lightbox .image_container img{
  max-height: 100%;
  min-height: 100%; 
  transform: scale(1,1);
  opacity: 1;
  transition: all 0.7s cubic-bezier(.56,.2,.23,.89);
}
#inknite_gallery_lightbox .close_btn{
  position: absolute;
  top: 40px;
  left: 6%;
  background-color: #D41525;
  width: 45px;
  height: 45px;
  display: block;
  z-index: -1000;
  cursor: pointer;
  opacity: 0;
  transform: scale(1.6,1.6);
  transition: all 0.5s cubic-bezier(.56,.2,.23,.89);
  overflow: hidden;
}
#inknite_gallery_lightbox.shown .close_btn{
  z-index: 1000;
  transform: scale(1,1);
  opacity: 1;
}
#inknite_gallery_lightbox .close_btn::before{
  content: "";
  width: 80%;
  height: 5px;
  display: block;
  background-color: #FFF;
  left: -80%;
  top: -50%;
  position: absolute;
  transform: rotate(45deg);
  transition: all 0.5s cubic-bezier(.56,.2,.23,.89);
}
#inknite_gallery_lightbox .close_btn::after{
  content: "";
  width: 80%;
  height: 5px;
  display: block;
  background-color: #FFF;
  left: -80%;
  bottom: -50%;
  position: absolute;
  transform: rotate(-45deg);
  transition: all 0.5s cubic-bezier(.56,.2,.23,.89);
  transition-delay: 0.2s;
}
#inknite_gallery_lightbox.shown .close_btn::before{
  left: 10%;
  top: 44%;
}
#inknite_gallery_lightbox.shown .close_btn::after{
  left: 10%;
  bottom: 44%;
}

#inknite_gallery_lightbox.shown .overlay{
  width: 100%;
}
#inknite_gallery_lightbox.hidden .overlay{
  width: 0%;
}
#inknite_gallery_lightbox .overlay{
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background-color: rgba(0,0,0, 0.9);
  background-image: url(../img/grid.png);
  background-position: center;
  background-size: 50px 50px;
  background-repeat: repeat;
  transition: all 0.6s cubic-bezier(.56,.2,.23,.89);
  cursor: pointer;
}
#inknite_gallery_lightbox img.hide_image{
  transform: scale(1.2,1.2);
  opacity: 0;
}
#inknite_gallery_lightbox #next_slide, #inknite_gallery_lightbox #prev_slide{
  position: absolute;
  display: block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 50%;
  top: 46%;
  background-color: rgba(255,255,255,0.25);
  border-radius: 60%;
  width: 50px;
  height: 50px;
  z-index: 99999999999;
  transition: all 0.3s cubic-bezier(.56,.2,.23,.89);
  cursor: pointer;
}
#inknite_gallery_lightbox #next_slide{
  right: 6%;
  background-image: url(../img/next_btn.png);
}
#inknite_gallery_lightbox #next_slide:hover{
  transform: scale(1.1,1.1);
  background-color: rgba(255,255,255,0.4);
}
#inknite_gallery_lightbox #prev_slide{
  left: 6%;
  background-image: url(../img/prev_btn.png);
}
#inknite_gallery_lightbox #prev_slide:hover{
  transform: scale(1.1,1.1);
  background-color: rgba(255,255,255,0.4);
}
