/* Preload images */
body:after {
  content: url(lightbox-close.png) url(loader.png) url(lightbox-prev.png) url(lightbox-next.png);
  display: none;
}

.lightboxOverlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9999;
  background-color: #FFF;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=96);
  opacity: 0.9;
  display: none;
}

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

.lightbox .lb-image {
  display: block;
  height: auto;
  max-width: inherit;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  -ms-border-radius: 3px;
  -o-border-radius: 3px;
  border-radius: 3px;
}

.lightbox a img {
  border: none;
}

.lb-outerContainer {
  position: relative;
  background-color: white;
  *zoom: 1;
  width: 250px;
  height: 250px;
  margin: 0 auto;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -ms-border-radius: 4px;
  -o-border-radius: 4px;
  border-radius: 4px;
  -webkit-box-shadow: 0 0 20px #666;
  -moz-box-shadow: 0 0 20px #666;
  -ms-box-shadow: 0 0 20px #666;
  -o-box-shadow: 0 0 20px #666;
  box-shadow: 0 0 20px #666;
}

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

.lb-container {
  padding: 4px;
}

.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;
  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(lightbox-prev.png) 5% 48% no-repeat;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
  opacity: 0;
  -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(lightbox-next.png) 95% 48% no-repeat;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
  opacity: 0;
  -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 {
  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: #333;
}

.lb-data .lb-details {
  width: 90%;
  float: left;
  text-align: left;
  line-height: 1.1em;
  padding-top:7px;
}

.lb-data .lb-caption {
  font-size: 16px;
  line-height: 1em;
}

.lb-data .lb-number {
  display: block; width: 100px;
  float:right;
  padding-bottom: 1em;
  font-size: 15px;
  color: #999999;
}

.lb-data .lb-close {
  display: block;
  float: right;
  width: 30px;
  height: 30px;
  background: url(lightbox-close.png) top right no-repeat;
  text-align: right;
  outline: none;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=70);
  opacity: 0.7;
  -webkit-transition: opacity 0.2s;
  -moz-transition: opacity 0.2s;
  -o-transition: opacity 0.2s;
  transition: opacity 0.2s;
}

.lb-data .lb-close:hover {
  cursor: pointer;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
  opacity: 1;
}
/* new loader **/
.lb-loader{
    position:absolute; top:50%; left:50%; margin-left:-80px; margin-top:-80px; z-index:101;
    width:160px; height:160px;
    background:url(loader.png) center center no-repeat;
    /*-webkit-background-size: 100%;
    -moz-background-size: 100%;
    -o-background-size:100%;*/
    background-size:100%;
    -webkit-animation: pulse 0.5s linear infinite;
       -moz-animation: pulse 0.5s linear infinite;
        -ms-animation: pulse 0.5s linear infinite;
         -o-animation: pulse 0.5s linear infinite;
            animation: pulse 0.5s linear infinite;
}
#loader img{width:100%;}
@-webkit-keyframes pulse {0% {width:160px;height:160px;margin-left:-80px;margin-top:-80px;} 50% {width:120px;height:120px;margin-left:-60px; margin-top:-60px;} 100% {width:160px;margin-left:-80px; margin-top:-80px;}}
   @-moz-keyframes pulse {0% {width:160px;height:160px;margin-left:-80px;margin-top:-80px;} 50% {width:120px;height:120px;margin-left:-60px; margin-top:-60px;} 100% {width:160px;margin-left:-80px; margin-top:-80px;}}
    @-ms-keyframes pulse {0% {width:160px;height:160px;margin-left:-80px;margin-top:-80px;} 50% {width:120px;height:120px;margin-left:-60px; margin-top:-60px;} 100% {width:160px;margin-left:-80px; margin-top:-80px;}}
     @-o-keyframes pulse {0% {width:160px;height:160px;margin-left:-80px;margin-top:-80px;} 50% {width:120px;height:120px;margin-left:-60px; margin-top:-60px;} 100% {width:160px;margin-left:-80px; margin-top:-80px;}}
        @keyframes pulse {0% {width:160px;height:160px;margin-left:-80px;margin-top:-80px;} 50% {width:120px;height:120px;margin-left:-60px; margin-top:-60px;} 100% {width:160px;margin-left:-80px; margin-top:-80px;}}
