/* 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("ajax-load-squares-tr.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:after{
content:attr(data-summary);width:100%;float:left;color:white;position:absolute;bottom:20%;z-index:1000000;
}
*/
#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('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:1em;
}

#nextArrow{
	background-position:right top;
	right:1em;
}
/*RR*/
.placeholder div{
	line-height:1.2em;
	width:100%;
	float:left;
	background:black;
	background:rgba(0,0,0,.65);
	height:auto;
	display:block;
	color:white;
	padding:.5em;
	position:absolute;
	z-index:100001;
	text-align:center;
	bottom:0px;
	white-space: normal !important;
}
.placeholder .pos{background:#ccc;color:black;display:inline-block;padding:.5em;border-radius:2px;margin:0 1em;}
/*
#gallerySlider::after{
	content: "\d7";
	position: fixed;
	top: .4em;
	right: .4em;
	width: .5em;
	height: .5em;
	display: block;
	padding: 0;
	background: yellowgreen;
	color: black;
	border-radius: 100%;
	font-size: 5em;
	line-height: .25em;
	text-align: center;
	cursor: pointer;
}
.mobi #gallerySlider::after{top:.2em;}
*/
#gallerySlider::after{
	content: url(close.png);
	position: fixed;
	top: 1.25em;
	right: 1em;
	width: 58px;
	height: 58px;
	display: block;
	padding: 0;
	cursor: pointer;
	opacity:.7;
}
#gallerySlider:hover::after{opacity:1;}

#gallerySlider.rightSpring::before,#gallerySlider.leftSpring::before{
	background:crimson;
	-moz-animation: background 0.3s;
	-webkit-animation: background 0.3s;
}

#gallerySlider::before{
	content: attr(data-index);
  position: fixed;
  top: 1.25em;
  left: 1em;
  width: 58px;
  height: 58px;
  line-height: 58px;
  display: block;
  color: white;
  background: rgba(0,0,0,.4);
  text-align: center;
  border-radius: 5px;
}

.mobi #gallerySlider::after,.mobi #gallerySlider::before{top:.5em;}





