/* Preload images */
body:after {
  content: url("../../img/svg/close.svg") url("../../img/svg/loader.svg") url("../../img/svg/lightbox/prev.svg") url("../../img/svg/lightbox/next.svg");
  display: none;
}

.lightboxOverlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  background-color: #000000;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=90);
  opacity: 0.9;
  display: none;
  height: 100vh !important;
}

.lightbox {
  position: fixed;
  left: 0;
  width: 100%;
  z-index: 10000;
  text-align: center;
  line-height: 0;
  font-weight: normal;
  top: 50% !important;
  transform: translateY(-50%);
}

.lightbox .lb-image {
  display: block;
  height: auto;
  max-width: inherit;
}

.lightbox a images {
  border: none;
}

.lb-outerContainer {
  position: relative;
  background-color: white;
  *zoom: 1;
  width: 250px;
  height: 250px;
  margin: 0 auto;
  max-width: 90%;
  max-height: 80%;
}

.lb-outerContainer:after {
  content: "";
  display: table;
  clear: both;
}

.lb-container {
  padding: 16px;
}

.lb-loader {
  position: absolute;
  top: 43%;
  left: 0;
  height: 25%;
  width: 100%;
  text-align: center;
  line-height: 0;
}

.lb-cancel {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto;
  background: url("../../img/svg/lightbox/loader.svg") no-repeat;
}

.lb-nav {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: calc(100% + 106px);
  z-index: 10;
}

.lb-container > .nav {
  left: 0;
}

.lb-nav a {
  outline: none;
  background-image: url('data:image/gif;base64,R0lGODlhAQABAPAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==');
}

.lb-prev, .lb-next {
  height: 100%;
  cursor: pointer;
  display: block;
}

.lb-nav a.lb-prev {
  width: 34%;
  left: 0;
  float: left;
  background: url("../../img/svg/lightbox/prev.svg") left 48% no-repeat;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=1);
  opacity: 1;
  -webkit-transition: opacity 0.6s;
  -moz-transition: opacity 0.6s;
  -o-transition: opacity 0.6s;
  transition: opacity 0.6s;
}

.lb-nav a.lb-prev:hover {
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
  opacity: 1;
}

.lb-nav a.lb-next {
  width: 64%;
  right: 0;
  float: right;
  background: url("../../img/svg/lightbox/next.svg") right 48% no-repeat;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=1);
  opacity: 1;
  -webkit-transition: opacity 0.6s;
  -moz-transition: opacity 0.6s;
  -o-transition: opacity 0.6s;
  transition: opacity 0.6s;
}

.lb-nav a.lb-next:hover {
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
  opacity: 1;
}

.lb-dataContainer {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin: 0 auto;
  padding-top: 5px;
  *zoom: 1;
  width: 100%;
  -moz-border-radius-bottomleft: 4px;
  -webkit-border-bottom-left-radius: 4px;
  border-bottom-left-radius: 4px;
  -moz-border-radius-bottomright: 4px;
  -webkit-border-bottom-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.lb-dataContainer:after {
  content: "";
  display: table;
  clear: both;
}

.lb-data {
  padding: 0 4px;
  color: #ccc;
}

.lb-data .lb-details {
  width: 85%;
  float: left;
  text-align: left;
  line-height: 1.1em;
}

.lb-data .lb-caption {
  font-size: 13px;
  font-weight: bold;
  line-height: 1em;
}

.lb-data .lb-number {
  display: block;
  clear: left;
  padding-bottom: 10px;
  font-size: 14px;
  line-height: 26px;
  font-family: "GothamPro-Medium";
  font-weight: 500;
  color: #fff;
}

.lb-closeContainer{
  position: absolute;
  right: 10px;
  bottom: calc(100% + 24px);
  z-index: 5;
}

.lb-close {
  display: block;
  float: right;
  width: 20px;
  height: 20px;
  background: url("../../img/svg/lightbox/close.svg") top right no-repeat;
  text-align: right;
  outline: none;
  opacity: 1;
  -webkit-transition: opacity 0.2s;
  -moz-transition: opacity 0.2s;
  -o-transition: opacity 0.2s;
  transition: opacity 0.2s;
}

.lb-close:hover {
  cursor: pointer;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
  opacity: 1;
}

#html5box-html5-lightbox{
  height: 100vh !important
}
#html5-lightbox-overlay{
  height: 100vh !important
}
#html5-lightbox-box{
  position: fixed;
  top: 50%;
  left: 50%;
  margin: 0 !important;
  transform: translate(-50%, -50%);
}

/* .html5-elem-wrap{
  height: auto !important;
} */
.html5-elem-data-box{
  position: absolute !important;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: transparent !important;
}
.html5-title-prefix{
  display: block;
  clear: left;
  padding-bottom: 10px;
  font-size: 14px;
  line-height: 26px;
  font-family: "GothamPro-Medium";
  font-weight: 500;
  color: #fff;
}
#html5-watermark{
  display: none !important;
}
.html5-elem-box{
  background: transparent !important;
  overflow: visible !important;
  height: auto !important;
  max-height: 100vh !important;
  z-index: 10;
}
.html5-next{
  display: block !important;
  width: 64%;
  height: 100%;
  top: 0 !important;
  right: -48px !important;
  margin-top: 0 !important;
  float: right;
  background: url("../../img/svg/lightbox/next.svg") right 48% no-repeat;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=1);
  opacity: 1;
  -webkit-transition: opacity 0.6s;
  -moz-transition: opacity 0.6s;
  -o-transition: opacity 0.6s;
  transition: opacity 0.6s;
}
.html5-prev {
  display: block !important;
  width: 34%;
  height: 100%;
  top: 0 !important;
  left: -48px !important;
  margin-top: 0 !important;
  float: left;
  background: url("../../img/svg/lightbox/prev.svg") left 48% no-repeat;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=1);
  opacity: 1;
  -webkit-transition: opacity 0.6s;
  -moz-transition: opacity 0.6s;
  -o-transition: opacity 0.6s;
  transition: opacity 0.6s;
}
#html5-close{
  display: block;
  position: absolute;
  top: -34px !important;
  right: 10px !important;
  margin-top: 0 !important;
  margin-right: 0 !important;
  width: 20px;
  height: 20px;
  background: url("../../img/svg/lightbox/close.svg") top right no-repeat;
  z-index: 11
}
.html5-image{
  padding: 16px !important;
}
.html5boxPlay{
  background: url("../../img/svg/lightbox/play.svg") no-repeat center !important;
  background-size: auto 15px !important;
}
.html5boxPause{
  background: url("../../img/svg/lightbox/pause.svg") no-repeat center !important;
  background-size: auto !important;
}
.html5boxVolumeButton{
  background: url("../../img/svg/lightbox/volume.svg") no-repeat center !important;
  background-size: auto !important;
}
.html5boxFullscreen{
  background: url("../../img/svg/lightbox/full-screen.svg") no-repeat center !important;
  background-size: auto !important;
}
.html5boxVideoControls{
  z-index: 10
}

@media screen and (max-device-width: 1170px){
  #html5-lightbox-box{
    max-width: 82.2%;
  }
  .html5-elem-wrap{
    width: 100% !important;
    /* height: max-content !important; */
    max-width: 100%;
  }
  .html5-lightbox-video{
    max-height: 70vh;
  }
  .html5-image-img{
    height: 100%;
    width: auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media screen and (max-device-width: 767px){
  .html5-elem-wrap{
    background-color: transparent !important;
  }
  .html5-image{
    padding: 0 !important;
    /* box-sizing: content-box !important; */
  }
  #html5-lightbox-box{
    width: 100vw !important;
    height: 100vh !important;
    padding: 0;
  }
  .html5-lightbox-box{
    height: 100vh;
  }
  .html5-elem-box{
    height: 100vh !important;
  }
  .html5-elem-wrap{
    position: absolute !important;
    top: 50%;
    left: 50%;
    margin: 0 !important;
    transform: translate(-50%, -50%);
    height: auto !important;
  }
  #html5-close {
    top: 24px !important;
    right: 0 !important;
  }
  .html5-elem-data-box {
    position: fixed !important;
    bottom: auto;
    top: 24px;
    left: 0;
    margin: 0 !important;
    transform: translateX(0);
    background: transparent !important;
  }
  .html5-prev, .html5-next, .html5-playpause{
    display: none !important;
  }
  .html5-image-img{
    height: auto;
    width: 100%;
    position: relative;
    left: 0;
    transform: translateX(0);
  }
}
