body.lb-disable-scrolling {
  overflow: hidden;
}

.lightboxOverlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  background-color: black;  
  opacity: 0.8;
  display: none;
  right: 0;
  bottom: 0;
  outline:0;
}

.lightbox {
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 10000;
  text-align: center;
  line-height: 0;
  font-weight: normal;
  outline: none;
}

.lightbox .lb-image {
  display: block;
  height: auto;
  max-width: inherit;
  max-height: none;
}

.lightbox a img {
  border: none;
}

.lb-outerContainer {
  position: relative;
  width: 250px;
  height: 250px;
  margin: 0 auto;    
  background-color: black;
}

.lb-outerContainer:after {
  content: "";
  display: table;
  clear: both;
}


.lb-nav {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 10;
}

.lb-container > .nav {
  left: 0;
}

.lb-nav a {
  outline: none;
}

.lb-prev, .lb-next {
  height: 100%;
  cursor: pointer;
  display: block;
}

.lb-nav a.lb-prev {
  position: absolute;
  background: url(/static/img/arrow-next.svg) center no-repeat;
  transform:rotate(180deg);
  top: 0;  
  bottom: 0;
  left: 0;
  width: 10%;
}

.lb-nav a.lb-next {
  position: absolute;
  background: url(/static/img/arrow-next.svg) center no-repeat;
  top: 0;  
  bottom: 0;
  right: 0;
  width: 10%;
}


.lb-dataContainer {
  margin: 0 auto;    
  zoom: 1;
  width: 100%;
  position: relative;
}

.lb-dataContainer:after {
  content: "";
  display: table;
  clear: both;
}

.lb-data {
  padding: 0 4px;
  color: #fff;
}

.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-caption a {
  color: #4ae;
}

.lb-data .lb-number {
  display: none;
  clear: left;
  padding-bottom: 1em;
  font-size: 12px;
  color: #999999;
}

.lb-data .lb-close {
  position: absolute;
  width: 30px;
  height: 30px;
  background-image: url(/static/img/nav-close.svg);
  filter: invert(100%);
  right: 0;
  bottom: 15px;
}

.lb-data .lb-close:hover {
  cursor: pointer; 
  opacity: 1;
}



#lightbox {
    display: flex;
    flex-direction: column;
}

.lb-dataContainer {
    order: 0;  
}
    
.lb-outerContainer{
    order: 1;
}

.lb-details {
    opacity: 0;
}

.lb-outerContainer.animating + div {
  display: inline !important;

}

.lb-outerContainer.animating + div > .lb-data {
    opacity:0;  
}

#lightboxOverlay { position: fixed !important; top: 0; left: 0; height: 100% !important; width: 100% !important; }
#lightbox { position: fixed !important; top: 50% !important; transform: translateY(-50%); }
