/* 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.85);
	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;
	position:relative;
}

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

.gallerySlider .placeholder:before, .gallerySlider .placeholder:after{
	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;
}
.galleryOverlay p.placeholderdesc{
	position:absolute;
	/*bottom:-40px;*/
	left:0;
	width:100%;
	color:#fff;
	text-align:center;
	background-color:#000;
	background-color: rgba(0,0,0,0.65);
	margin:0;
	padding:10px;
	font-size:14px;
	display:block;
	width:100%;
	height:auto;
	/*opacity: 0;*/
	-moz-box-sizing:border-box; /* Firefox */
	-webkit-box-sizing:border-box; /* Safari */
	box-sizing:border-box;
	-moz-transition:bottom 0.7s ease, opacity 1s ease;
	-webkit-transition:bottom 0.7s ease, opacity 1s ease;
	transition:bottom 0.7s ease, opacity 1s ease;
}

.placeholderclose{
	border:none;
	text-decoration:none;
	background:url('../images/sprites.png') left -58px no-repeat;
	opacity:0.5;
	cursor:pointer;
	position:absolute;
	width:50px;
	height:50px;
	top:10px;
	/*margin-top:15px;*/
	right:36px;

	-moz-transition:top 0.7s ease, right 0.7s ease, opacity 0.5s ease;
	-webkit-transition:top 0.7s ease, right 0.7s ease, opacity 0.5s ease;
	transition:top 0.7s ease, right 0.7s ease, opacity 0.5s ease;
}

.placeholdercontrols{
	border:none;
	text-decoration:none;
	background:url('../images/sprites.png') left bottom no-repeat;
	opacity:0.5;
	cursor:pointer;
	position:absolute;
	width:44px;
	height:44px;
	/*top:-45px;*/
	/*margin-top:15px;*/
	/*right:-22px;*/

	-moz-transition:top 0.7s ease, right 0.7s ease, opacity 0.5s ease;
	-webkit-transition:top 0.7s ease, right 0.7s ease, opacity 0.5s ease;
	transition:top 0.7s ease, right 0.7s ease, opacity 0.5s ease;
}

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

.gallerySlider.leftSpring{
	-moz-animation: leftSpring 0.5s;
	-webkit-animation: leftSpring 0.5s;
}

/* Firefox Keyframe Animations */

@-moz-keyframes rightSpring{
	0%{		margin-left:0px;}
	50%{	margin-left:-60px;}
	100%{	margin-left:0px;}
}

@-moz-keyframes leftSpring{
	0%{		margin-left:0px;}
	50%{	margin-left:60px;}
	100%{	margin-left:0px;}
}

/* Safari and Chrome Keyframe Animations */

@-webkit-keyframes rightSpring{
	0%{		margin-left:0px;}
	50%{	margin-left:-60px;}
	100%{	margin-left:0px;}
}

@-webkit-keyframes leftSpring{
	0%{		margin-left:0px;}
	50%{	margin-left:60px;}
	100%{	margin-left:0px;}
}

/* Arrows */

.prevArrow,.nextArrow{
	border:none;
	text-decoration:none;
	background:url('../images/sprites.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, .placeholderclose:hover{
	opacity:1;
}

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

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


/* Thumbnail override */

#touchgallery-thumbs162 a {
    width: 300px!important;
    height: 220px!important;
    margin: 6px 6px 6px;
}

#touchgallery-thumbs163 a {
    width: 300px!important;
    height: 220px!important;
    margin: 6px 6px 6px;
}

#touchgallery-thumbs164 a {
    width: 300px!important;
    height: 220px!important;
    margin: 6px 6px 6px;
}

#touchgallery-thumbs165 a {
    width: 300px!important;
    height: 220px!important;
    margin: 6px 6px 6px;
}

#touchgallery-thumbs166 a {
    width: 300px!important;
    height: 220px!important;
    margin: 6px 6px 6px;
}

#touchgallery-thumbs167 a {
    width: 300px!important;
    height: 220px!important;
    margin: 6px 6px 6px;
}

#touchgallery-thumbs168 a {
    width: 300px!important;
    height: 220px!important;
    margin: 6px 6px 6px;
}

#touchgallery-thumbs169 a {
    width: 300px!important;
    height: 220px!important;
    margin: 6px 6px 6px;
}

#touchgallery-thumbs170 a {
    width: 300px!important;
    height: 220px!important;
    margin: 6px 6px 6px;
}

#touchgallery-thumbs171 a {
    width: 300px!important;
    height: 220px!important;
    margin: 6px 6px 6px;
}



