/* 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;
}

div.thumbs
{
padding:10px;
margin:10px;
text-align:center;

}




img.gally_5
{
	border: 2px #333 solid;
	border-radius: 2px;
	margin-bottom:5px;
	width:18%;
	height:auto;
}

img.gally_2
{
	border: 2px #333 solid;
	border-radius: 2px;
	margin-bottom:5px;
	width:46%;
	height:auto;
}

img.gally_3
{
	border: 2px #333 solid;
	border-radius: 2px;
	margin-bottom:5px;
	width:31%;
	height:auto;
}

img.gally_4
{
	border: 2px #333 solid;
	border-radius: 2px;
	margin-bottom:5px;
	width:23%;
	height:auto;
}


img.gally
{
	border: 4px white solid;
	border-radius: 5px;
	margin-bottom:5px;
	width:100%;
}

img.gally_float_small
{
	width:200px;
}

img.gally_float
{
	width:300px;
}

/* This class will trigger the animation */

#galleryOverlay.visible{
	opacity:1;
}

#galleryOverlay #caption-container{
	
	display:none;
	overflow:hidden;
	position:absolute;
	width:100%;
	
}
#galleryOverlay #caption-content{
	
	display:block;
	color:#aaa;
	text-align:center;
	padding:10px 8px;
	margin:auto;
	font-size:150%;
	 /* Fallback for web browsers that don't support RGBa */
	background-color:#000 transparent;
	/* RGBa with 0.5 opacity */
	background-color: rgba(0, 0, 0, 0.5);
	/* For IE 5.5 - 7*/
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#7F000000, endColorstr=#7F000000);
	/* For IE 8*/
	-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#7F000000, endColorstr=#7F000000)";
	position:relative;
}

#gallerySlider{
	height:100%;
	
	left:0;
	top:0;
	
	width:100%;
	white-space: nowrap;
	position:absolute;
	
	-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: 1px;
	text-align: center;
	width:100%;
	display:inline-block;
}

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

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

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

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

#gallerySlider.leftSpring{
	-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,#closeButton,#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, #closeButton:hover{
	opacity:1;
}

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

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

/* Enable the close button by overriding #closeButton{top:NNNpx;} in your css. Try
 * 100px as a first guess if you're not sure where to position the close button.
 */
#closeButton{
	background-position:-43px 0px;
	top:-1000px;
	right:43px;
}
