/* 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: 50%;
	width: 1px;
	margin-right:-1px;
}

#gallerySlider .placeholder img{
	display: inline-block;
	max-height: 94%;
	max-width: 94%;
	vertical-align: middle;
	border: 8px #444444 solid;
}
#gallerySlider .placeholder:after {
  content: attr(data-caption);
  color: white;
  font-size: 18px;
  position: absolute;
  display: block;
  height: auto;
  width: 100%;
  z-Index: 1;
  bottom: 70px;
  text-align: center;
  margin: 0px auto;
    text-shadow: 1px 2px 5px #000;
}
#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:3%;
}

#nextArrow{
	background-position:right top;
	right:3%;
}









.touchTouch-enabled{
	/*display:block;
	text-align:center;
	padding:15px;*/
}

.gallery-contain{
	display:block;
	padding:0;
	width: 100%;
	clear: both;
}
.gallery-contain a,
.gallery-contain a:link,
.gallery-contain a:visited{
    display: block;
	position: relative;
    float: left;
	line-height: 0;
	margin:0;
	padding:4px 10px;
	-moz-transition:opacity 0.2s ease;
	-webkit-transition:opacity 0.2s ease;
	transition:opacity 0.2s ease;
    
}
.gallery-contain a:hover,
.gallery-contain a:focus,
.gallery-contain a:active{
	/*opacity: .8;*/
}
.tiled .gallery-contain a,
.tiled .gallery-contain a:link,
.tiled .gallery-contain a:visited{
	width: 33.33%;
}
.stack .gallery-contain a,
.stack .gallery-contain a:link,
.stack .gallery-contain a:visited,
.button .gallery-contain a,
.button .gallery-contain a:link,
.button .gallery-contain a:visited{
	float: none;
	display: none;
}
.gallery-slide-contain{
    position: relative ;
}
.gallery-contain .gallery-slide-contain a{
    position: absolute ;
    top: 10px;
    right: 10px;
	font-size: 12px;
	padding: 4px 10px;
	line-height: 1.5;
	color: #eee;
	background-color: #000;
    border-radius: 20px;
}
.gallery-contain a img{
	margin:0;
	padding:0;
    line-height: 0;
	border-radius: 5px;
}

.tiled .gallery-contain a:hover:after{
	content: "\f002";
    font-family: FontAwesome;
	position: absolute;
	bottom: 14px;
	right: 14px;
	background-color: rgba(0, 0, 0, 1);
	color: #ffffff;
	font-size: 12px;
	padding: 4px 10px;
	line-height: 1.5;
	text-transform: uppercase;
}
.stack .gallery-contain a[data-count="0"] {
	display: block;
}
.stack .gallery-contain a[data-count="0"]:after {
	content: 'View Gallery';
	position: absolute;
	bottom: 14px;
	right: 14px;
	background-color: rgba(0, 0, 0, 1);
	color: #ffffff;
	font-size: 12px;
	padding: 4px 10px;
	line-height: 1.5;
	text-transform: uppercase;
}
.gallery-contain .gallery-slide-contain a,
.button .gallery-contain a[data-count="0"] {
	display: inline-block;
	background-color: rgba(0, 0, 0, .2) ;
	color: #ffffff;
	font-size: 12px;
	padding: 4px 10px;
	line-height: 1.5;
	text-transform: uppercase;
    border-radius: 20px;
}
.gallery-contain:hover .gallery-slide-contain a,
.card:hover .button .gallery-contain a[data-count="0"] {
	background-color: rgba(0, 0, 0, 1);
}
.img-container > .button{
	position: absolute;
	top: 10px;
	right: 10px;
    z-index: 21;
}
.img-container{
	position: relative;
    line-height: 0;
}
.img-container IMG{
    width: 100%;
}



