/* The gallery overlay */

#galleryOverlay{										/* black background */
	width:100%;
	height:100%;
	position:fixed;
	top:0;
	left:0;
	opacity:0;
	z-index:100000;
	background-color:#222;
	background-color:rgba(0,0,0,1);
	overflow:hidden;
	display:none;
	
	-moz-transition:opacity 0.3s ease;
	-webkit-transition:opacity 0.3s ease;
	transition:opacity 0.3s ease;
}
#touchTouchItemTitle {									/* black background */
	position: absolute;
	/*text-align: center;*/
	color: white;
	width: 100%;
	top: 0px;
	background-color: rgba(0,0,0,0.3);
	line-height: normal;
	padding: 5px;
	margin: 0;
	min-height: 6%;
    display: grid;
    /*align-items: center;*/
}
#touchTouchItemDownload {									/* black background */
	position: absolute;
	/*text-align: center;*/
	color: white;
	width: 100%;
	bottom: 0px;
	background-color: rgba(0,0,0,0.3);
	line-height: normal;
	padding: 0.5em 1.5em;
	text-align: right;
	margin: 0;
}
#touchTouchItemTitle:empty,
#touchTouchItemDownload:empty{	
	display: none;
}

#galleryOverlay.white {									/* white background */
	background-color:#FFFFFF;
}
#touchTouchItemTitle.white {							/* white background */
	color: #000000;
	background-color: rgba(256,256,256,0.7);
}

/* This class will trigger the animation */

#galleryOverlay.visible{
	opacity:1;
	-moz-transition:opacity 0.3s ease;
	-webkit-transition:opacity 0.3s ease;
	transition:opacity 0.3s ease;
}

#gallerySlider{
	height:90%;
	
	left:0;
	top:7%;
	
	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{
	position: relative;
	background: url("preloader.gif") no-repeat center center;
	height: 100%;
	/*line-height: 1px;*/
	/*text-align: center;*/
	width:100%;
	display:inline-block;
}
#gallerySlider .placeholder.inPlaceFadeSlider{
	position: absolute;
	left: 0;
	opacity:0;
	filter:alpha(opacity=0);
	-moz-opacity:0;

	transition: opacity .8s;
	-moz-transition: opacity .8s; 
	-webkit-transition: opacity .8s; 
	-o-transition: opacity .8s; 
}
#gallerySlider .placeholder.inPlaceFadeSlider.show{
	opacity:100;
	filter:alpha(opacity=100);
	-moz-opacity:1;
}

/* 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 .placeholder-inner{
	position: absolute;
	display: grid;
    grid-gap: 10%;
    /* grid-auto-flow: column; */
    /* align-items: end;*/
	top: 50%;
	left: 50%;
	-webkit-transform: translateX(-50%) translateY(-50%);
	-ms-transform: translateX(-50%) translateY(-50%);
	transform: translateX(-50%) translateY(-50%);
}
#gallerySlider .placeholder .placeholder-texts{
	display: grid;
    grid-gap: 10%;
}

#gallerySlider .placeholder img{
	display: inline-block;
	max-height: 100%;
	max-width: 100%;
	vertical-align: middle;
	-webkit-box-shadow: 0px 0px 29px 5px rgba(0,0,0,0.77);
	-moz-box-shadow: 0px 0px 29px 5px rgba(0,0,0,0.77);
	box-shadow: 0px 0px 29px 5px rgba(0,0,0,0.77);
}

#gallerySlider.imageFitCover img {
	object-fit: cover;
	object-position: 50% 50%;
	max-width: none;
	max-height: none;
	width: 100%;
	height: 100%;
}

#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,#closeButton{
	border:none;
	text-decoration:none;
	background:url('arrows2.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, #closeButton:hover{
	opacity:1;
}

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

#nextArrow{
	background-position:-43px top;
	right:40px;
}
#closeButton{
	background-position:right top;
	background-size: auto 100%;
	width:43px;
	height:43px;
	top: 35px;
	right: 7px;
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
}
