/* 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("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: 51%; /* 50% causes "jumping" on iPhone */
	width: 1px;
	margin-right:-1px;
}

#gallerySlider .placeholder img{
	display: inline-block;
	max-height: 75%;
	max-width: 90%;
	vertical-align: middle;
	border: 8px solid #fff;
}

#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 */

/* IcoMoon */

#prevArrow, #nextArrow {
	font-family: 'icomoon';
	speak: none;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;

	/* Better Font Rendering =========== */
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

#prevArrow,#nextArrow{
	color: #fff;
	font-size: 56px;

	border:none;
	text-decoration:none;
	cursor:pointer;
	position:absolute;

	top:50%;
	margin-top:-28px;

	-webkit-transition: all 0.4s;
	   -moz-transition: all 0.4s;
	     -o-transition: all 0.4s;
	        transition: all 0.4s;
}

/*
#prevArrow:hover, #nextArrow:hover{
	opacity: 0.5;
}
*/

#prevArrow{
	left:50px;
}

#nextArrow{
	right:50px;
}

#prevArrow:before {
	content: "\e900";
}

#nextArrow:before {
	content: "\e901";
}

/* Custom Styles */

#closeButton {
	display: block;
	width: 50px;
	height: 50px;
	margin: -10px -10px 0 0;
	background: url("../../img/close.svg") no-repeat center;
	background-size: 30px;
	text-indent: -9999em;
	position: absolute;
	right: 5%;
	top: 5%;
}

/* 768px */
@media screen and (min-width: 48em) {
	#gallerySlider .placeholder img {
		max-height: 80%;
	}
}

/* 1025px */
@media screen and (min-width: 64.0625em) {
	#closeButton {
		right: 50px;
		top: 50px;
	}
}