/* 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;
	
	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("../images/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,#nextArrow{
	border:none;
	text-decoration:none;
	background:url('../images/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;
}

#thumbs .touch_img{
	position: relative;
	display: block;
	overflow: hidden;

}
	#thumbs .touch_img img{
		width: 100%;
		}
#thumbs .touch_img:hover{
	text-decoration: none;
	}
#thumbs .touch_img .fa-plus-square{
	position: absolute;
	font-size: 50px;
	line-height: 50px;
	top: 50%;
	left: 50%;
	color: #fff;
	margin-top: -22px;
	margin-left: -22px;
	display: none;
	}
	#thumbs .touch_img:hover .fa-plus-square{
		display: block;
		}

#thumbs .thumb_box a.touch_img{
	position: relative;
	overflow: hidden;
	}
	.thumb_box a.touch_img img {
		display: block;
		position: relative;
		width: 100%;
		}
	#thumbs a.touch_img span.fa-expand {
		position: absolute;
		left: 50%;
		margin-left: -23px;
		top: -30px;
		margin-top: -23px;
		color: #fff;
		font-size: 46px;
		line-height: 46px;
		-webkit-transition: 0.4s;
		-moz-transition: 0.4s;
		-ms-transition: 0.4s;
		-o-transition: 0.4s;
		transition: 0.4s;
		z-index: 2;
		}
		#thumbs a.touch_img:hover span.fa-expand {
			display: block;
			position: absolute;
			left: 50%;
			margin-left: -23px;
			top: 50%;
			margin-top: -23px;
			color: #d5dd72;
			font-size: 46px;
			line-height: 46px;
			}

	#thumbs a.touch_img span.bg {
		background: url(../images/span_bg.png) repeat 0 0;
		position: absolute;
		height: 0;
		bottom: -100%;
		-webkit-transition: 0.5s;
		-moz-transition: 0.5s;
		-ms-transition: 0.5s;
		-o-transition: 0.5s;
		transition: 0.5s;
		}
		#thumbs a.touch_img:hover span.bg {
			display: block;
			height: 100%;
			left: 0px;
			right: 0px;
			bottom: 0px;
			}

