#lightbox,
#lightboximage,
img.lightbox {
  margin: 0;
  padding: 0;
}

#lightbox, #lightboximage, .lb-description p {
  -webkit-transition: opacity 0.6s ease-in-out;
  -moz-transition: opacity 0.6s ease-in-out;
  -ms-transition: opacity 0.6s ease-in-out;
  -o-transition: opacity 0.6s ease-in-out;
  transition: opacity 0.6s ease-in-out;
  -webkit-backface-visibility: hidden;
}

#lightbox-gallery {
  -webkit-animation-duration: 0.6s;
  animation-duration: 0.6s;
}

#lightbox {
  position: fixed; /* keeps the lightbox window in the current viewport */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  z-index: 1;
  opacity: 0;
}


#lightboximage {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: black;
  color: #fff;
  border: 4px solid #fff;
  z-index: 2;
  font-family: Verdana, sans-serif;
  opacity: 0;
}

#lightboximage img.lightbox {
  opacity: 0;
  display: block;
  z-index: 2;
}

#lightboximage .lb-description {
  position: absolute;
  bottom: 0;
  width: 100%;
  z-index: 3;
}

.lb-description p {
  opacity: 0;
  height: 10px;
  color: #fff;
  margin: 0;
  padding:30px;
  background: black;
  text-align: left;
  overflow: hidden;
  z-index: 3;
}

#lightboximage #image-counter {
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: 16px;
  position: absolute;
  line-height: 1;
  top: -26px;
  left: 10px;
  z-index: 2;
}

#lightboximage a.close {
  margin: 0;
  padding: 0;
  color: #fff;
  text-decoration: none;
  font-size: 32px;
  position: absolute;
  line-height: 1;
  top: -40px;
  right: 0;
  z-index: 2;
}

#lightboximage a.close:hover {
  color: #aaa;
}

#lightboximage.lightbox-broken {
  width: 300px;
  height: 60px;
}

#lightboximage.lightbox-broken img.lightbox {
  display: none;
}

#lightboximage.lightbox-broken .lb-description {
  background: none;
}

#lightboximage.lightbox-broken .lb-description p {
  text-align: center;
  opacity: 1;
}


/* Gallery */
#lightbox-gallery {
  position: fixed;
  right: 0;
  z-index: 2;
  overflow: auto;
  padding: 18px;
  background: #121212;
  border-left: 2px solid #ccc;
  height: 100%;
}

#lightbox-gallery img.thumbnail {
  cursor: pointer;
  border: 2px solid #424242;
  margin-top: 10px;
  display: block;
  width: 90px;
}

#lightbox-gallery img.thumbnail:hover,
#lightbox-gallery img.thumbnail.active {
  border: 2px solid #EE7400;
}


/* Mobile */
@media only screen and (max-width:768px) {
  .lb-description p {
    padding: 20px;
    font-size: 11px;
    line-height: 2;
	height:2px;
  }
  #lightboximage img.lightbox {
    max-width: 300px;
  }
  #lightbox-gallery, #image-counter {
    display: none;
  }
}

/* Tablet */
@media only screen and (min-width:768px) {
  /*#lightbox-gallery img.thumbnail {
    width: 80px;
  }*/
  #lightboximage img.lightbox {
    max-width: 480px;
  }
}

/* Smaller screens*/
@media only screen and (min-width:992px) {
  /*#lightbox-gallery img.thumbnail {
    width: 90px;
  }*/
  #lightboximage img.lightbox {
    max-width: 680px;
  }
}

/* Large screens */
@media only screen and (min-width:1170px) {
  /*#lightbox-gallery img.thumbnail {
    width: 100px;
  }*/
  #lightboximage img.lightbox {
    max-width: 880px;
  }
}




/* css3 animate.css */
@-webkit-keyframes slideInRight {
  0% {
    -webkit-transform: translate3d(100%, 0, 0);
    transform: translate3d(100%, 0, 0);
    visibility: visible;
  }

  100% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes slideInRight {
  0% {
    -webkit-transform: translate3d(100%, 0, 0);
    transform: translate3d(100%, 0, 0);
    visibility: visible;
  }

  100% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

.slideInRight {
  -webkit-animation-name: slideInRight;
  animation-name: slideInRight;
}

@-webkit-keyframes slideOutRight {
  0% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }

  100% {
    visibility: hidden;
    -webkit-transform: translate3d(100%, 0, 0);
    transform: translate3d(100%, 0, 0);
  }
}

@keyframes slideOutRight {
  0% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }

  100% {
    visibility: hidden;
    -webkit-transform: translate3d(100%, 0, 0);
    transform: translate3d(100%, 0, 0);
  }
}

.slideOutRight {
  -webkit-animation-name: slideOutRight;
  animation-name: slideOutRight;
}

.animated {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}
