/* The gallery overlay */

#galleryOverlay{
	width:100%;
	height:100%;
	position:fixed;
	top:0;
	left:0;
	opacity:0;
	z-index:100000;
	background-color:#222;
	background-color:rgba(0,0,0,0.8);
	overflow:hidden;
	display:none;
	
	-moz-transition:opacity 1s ease;
	-webkit-transition:opacity 1s ease;
	transition:opacity 1s ease;
}

/* This class will trigger the animation */

#galleryOverlay.visible{
	opacity:1;
}

#gallerySlider{
	height:100%;
	
	left:0;
	top:0;
	line-height: 0;
	width:100%;
	white-space: nowrap;
	position:absolute;
	vertical-align: top;
	-moz-transition:left 0.4s ease;
	-webkit-transition:left 0.4s ease;
	transition:left 0.4s ease;
}

#gallerySlider .placeholder{
	background: url("preloader.gif") no-repeat center center;
	height: 100%;
	line-height: 0;
	text-align: center;
	width:100%;
	display:inline-block;
	vertical-align: top;
}

/* The before element moves the
 * image halfway from the top */

#gallerySlider .placeholder:before{
	content: "";
	display: inline-block;
	height: 50%;
	width: 1px;
	line-height: 0;
	margin-right:-1px;
}

#gallerySlider .placeholder img{
	display: inline-block;
	max-height: 100%;
	max-width: 100%;
	vertical-align: middle;
}

#gallerySlider.rightSpring{
animation: rightSpring 0.3s;
	-moz-animation: rightSpring 0.3s;
	-webkit-animation: rightSpring 0.3s;
}

#gallerySlider.leftSpring{
animation: leftSpring 0.3s;
	-moz-animation: leftSpring 0.3s;
	-webkit-animation: leftSpring 0.3s;
}




#gallerySlider .placeholder .image-caption {
display:none;
line-height:normal;
margin:auto;
text-align:left;
padding:3px 0;
word-wrap:break-word;
text-overflow:ellipsis;
overflow:hidden;
height:24px;
top:-30px;
background-color:#333;
opacity:0.8;
position:relative;
}


#galleryOverlay #caption-container{
	display:none;
	overflow:hidden;
	position:absolute;
	width:100%;
	z-index: 9999;
}
#galleryOverlay #caption-content{

	display:block;
	color:#fff;
	text-align:center;
	padding:10px 5px;
	margin:auto;
	font-size:14px;
	text-shadow: 0 1px 1px rgba(0,0,0,0.3);
	text-decoration: none;
	width: 100%;
	/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#000000+0,000000+100&0+0,0.65+100 */
background: -moz-linear-gradient(top,  rgba(0,0,0,0) 0%, rgba(0,0,0,0.65) 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(top,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.65) 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.65) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#a6000000',GradientType=0 ); /* IE6-9 */


}

#gallerySlider.rightSpring, #galleryOverlay #caption-container.rightSpring{
    animation: rightSpring 0.3s;
  	-moz-animation: rightSpring 0.3s;
  	-webkit-animation: rightSpring 0.3s;
  }
#gallerySlider.leftSpring, #galleryOverlay #caption-container.leftSpring{
    animation: leftSpring 0.3s;
  	-moz-animation: leftSpring 0.3s;
  	-webkit-animation: leftSpring 0.3s;
}




/* Firefox Keyframe Animations */

@-moz-keyframes rightSpring{
	0%{		margin-left:0px;}
	50%{	margin-left:-30px;}
	100%{	margin-left:0px;}
}

@-moz-keyframes leftSpring{
	0%{		margin-left:0px;}
	50%{	margin-left:30px;}
	100%{	margin-left:0px;}
}

/* Safari and Chrome Keyframe Animations */

@-webkit-keyframes rightSpring{
	0%{		margin-left:0px;}
	50%{	margin-left:-30px;}
	100%{	margin-left:0px;}
}

@-webkit-keyframes leftSpring{
	0%{		margin-left:0px;}
	50%{	margin-left:30px;}
	100%{	margin-left:0px;}
}

/* Arrows */

#prevArrow,#nextArrow{
	border:none;
	text-decoration:none;
	background:url('arrows.png') no-repeat;
	opacity:0.5;
	cursor:pointer;
	position:absolute;
	width:43px;
	height:58px;
	
	top:50%;
	margin-top:-29px;
	
	-moz-transition:opacity 0.2s ease;
	-webkit-transition:opacity 0.2s ease;
	transition:opacity 0.2s ease;
}

#prevArrow:hover, #nextArrow:hover{
	opacity:1;
}

#prevArrow{
	background-position:left top;
	left:40px;
}

#nextArrow{
	background-position:right top;
	right:40px;
}
