#lightbox p {
  margin:0;
  padding:0;
}
#lightbox {
  display:none;
  z-index:999;

  position:fixed;
  top:0; bottom:0;
  left:0; right:0;
  margin:auto;

}

#lightbox .load-circle {
  background-color:rgba(0,0,0,0.2);
  padding:4px;
  border-radius: 99px;
  -moz-border-radius: 99px;
  -webkit-border-radius: 99px;
  opacity:1;
  position:absolute;
  top:10px;
  left:10px;
  width:40px;
  height:40px;
  z-index: 99;
  cursor:pointer;
  transition:opacity .25s ease-in-out;
  -moz-transition:opacity .25s ease-in-out;
  -webkit-transition:opacity .25s ease-in-out;
}
#lightbox .load-circle:hover {
  opacity: 0.7;
}
#lightbox .load-circle:before {
  content:'\f28b';
  font-size:25px;
  color:white;
  font-family: 'FontAwesome';
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  -ms-transform:translate(-50%,-50%);
  -webkit-transform:translate(-50%,-50%);
}
#lightbox .load-circle.paused:before {
  content:'\f144';
}

#lightbox .icc:before {
  font-family: 'FontAwesome';
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  -ms-transform:translate(-50%,-50%);
  -webkit-transform:translate(-50%,-50%);
}

#lightbox .image {
  position:relative;
  float:left;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

#lightbox .image.loading {
  background-color:white;
}
#lightbox .image.loading:before {
  width:100%;
  font-family: 'FontAwesome';
  color:rgba(0,0,0,0.6);
  font-size:40px;
  content:'\f042';
  z-index: 9;
  position:absolute;
  top:calc(50% - 20px);
  text-align: center;

  -webkit-animation: fa-spin 2s infinite linear;
  animation: fa-spin 2s infinite linear;
}

#lightbox .image .arrow {
  cursor:pointer;
  width:35px;
  height:150px;
  max-height:100%;
  background-color:rgba(0,0,0,0.4);
  color:white;
  font-size:14px;
  border:0;
  padding:0;

  position:absolute;
  top:50%;
  transform:translate(0,-50%);
  -ms-transform:translate(0,-50%);
  -webkit-transform:translate(0,-50%);

  transition:all .25s ease-in-out;
  -moz-transition:all .25s ease-in-out;
  -webkit-transition:all .25s ease-in-out;
}
#lightbox .image .arrow:hover {background-color:rgba(0,0,0,0.8);}
#lightbox .image .arrow.prev {left:0;}
#lightbox .image .arrow.next {right:0;}
#lightbox .image .arrow.prev:before {content:'\f053';}
#lightbox .image .arrow.next:before {content:'\f054';}

#lightbox .sidePanel {
  position:absolute;
  top:0;
  right:0;
  box-sizing: border-box;
  width:300px;
  height:100%;
  background-color:white;
  padding: 10px 10px 10px 10px;
  overflow-y:auto;
}

#lightbox .title {
  float:left;
  box-sizing: border-box;
  width:100%;
  background-color:black;
  color:white;
  font-weight:700;
  font-size: 20px;
  padding:10px;
}
#lightbox .description {
  float:left;
  box-sizing: border-box;
  width:100%;
  padding:10px;
}
#lightbox .caption {
  float:left;
  box-sizing: border-box;
  width:100%;
  background-color:#e0e0e0;
}
#lightbox .caption span {
  font-weight:600;
}
#lightbox .caption.active {
  padding:10px;
}

#lightbox .cats {
  width:100%;
  float:left;
  display:block;
}
#lightbox .cats .cat {
  cursor:pointer;
  box-sizing: border-box;
  float:left;
  background-color:#008dbc;
  color:white;
  margin:0 4px 4px 0;
  padding:5px;
  line-height:1;
  border-radius:2px;
  font-size:11px;
}
#lightbox .cats .cat span {
  font-weight:600;
}

#lightbox .thumbs {
  position: absolute;
  text-align:center;
  width:100%;
  left:0;
  bottom:0;
  opacity:0.3;

  transition: all .25s ease-in-out;
  -moz-transition: all .25s ease-in-out;
  -webkit-transition: all .25s ease-in-out;
}

#lightbox .thumbs:hover {
  opacity:1;
}

#lightbox .thumbs .thumb {
  cursor:pointer;
  box-sizing: border-box;
  display:inline-block;
  width:50px;
  padding: 0 5px 5px 0;
}
#lightbox .thumbs .thumb div {
  box-sizing: border-box;
  border:solid 2px #e0e0e0;
  width:100%;
  background-size:cover;
  background-position: center center;
}
#lightbox .thumbs .thumb.active div {
  border-color:#008DBC;
}
#lightbox .thumbs .thumb div:after {
  content:'';
  display:block;
  padding-bottom:100%;
}

#lightbox .close {
  cursor:pointer;
  width:35px;
  height:35px;
  background-color:rgba(0,0,0,0.4);
  position:absolute;
  right:0;
  top:0;
  z-index:9;
  transition:all .25s ease-in-out;
  -moz-transition:all .25s ease-in-out;
  -webkit-transition:all .25s ease-in-out;
}
#lightbox .close:hover {
  background-color:rgba(0,0,0,0.8);
}
#lightbox .close:before {
  content:'\f00d';
  color:white;
  font-size:14px;
}
#lightbox .__preload {
  display:none;
}
