.gallery_background {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0px;
	left: 0px;
	background-color: rgba(0,0,0,0.4);
}

.gallery_imgDiv {
	position: absolute;
	top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
		-webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
	display: block; 
	background-color: white; 
	padding: 16px; 
	box-shadow: 0px 0px 32px 0px rgba(0,0,0,0.4);
}

.gallery_close {
	position: absolute;
	width: 50px;
	height: 50px;
	max-width: 20%;
	max-height: 20%;
	top: -15px;
	right: -15px;
	background-image: url('gallery/gallery-close.png');
	background-position: right top;
	background-repeat: no-repeat;
	cursor: pointer;
	z-index: 5;
}

.gallery_next, .gallery_prev {
	cursor: pointer;
	display: block;
	position: absolute;
	top: 0px;
	background-repeat: no-repeat;
	height: 100%;
	width: 50%;
	
	
}

.gallery_next, .gallery_prev, .gallery_close {
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	-webkit-tap-highlight-color: transparent;
}

.gallery_next {
	background-position: 95% center;
	right: 0px;
	z-index: 2;
}

.gallery_next:hover {
	background-image: url('gallery/gallery-next.png');
}

.gallery_prev {
	background-position: 5% center;
	left: 0px;
	z-index: 3;
	
}

.gallery_prev:hover {
	background-image: url('gallery/gallery-prev.png');
}

.gallery_image {
	max-width: 100%;
	max-height: 100%;
}

.shMC11, .shMC2_1, .shMC4_3, .shMC16_9 {position: relative; width: auto; overflow: hidden;}
.shMC11:before, .shMC2_1:before, .shMC4_3:before, .shMC16_9:before {content: ""; display: block; padding-top: 100%;}
.shMC2_1:before {padding-top: 50%;}
.shMC4_3:before {padding-top: 75%;}
.shMC16_9:before {padding-top: 56.25%;}
.shC {
	position: absolute; top: 0; left: 0; right: 0; bottom: 0;
}
.shSlide {
	position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-repeat: no-repeat; background-size: cover; background-position: center center;
}
.shSlideOp {
	opacity: 0; visibility: hidden;
}
.shSelContainer {
	list-style-type: none; display: inline-block; background-color: rgba(200,200,200,0.5); border: 2px solid rgba(255,255,255,0.5); min-width: 3em; min-height: 0.5em; margin: 0.3em; border-radius: 10px; text-align: left; padding: 0.35em 0.45em; line-height: 0.8em; background-clip: padding-box;
}
.shSelCtrl {
	display: inline-block; margin:0px 0.15em; cursor: pointer;
}
.shSelSVG {
	width: 0.7em; height: 0.7em;
}




.testBox { 
	display: inline-block; visibility: hidden; position: absolute; top:0px; left:0px;
}

@media screen and (pointer: coarse) {
	.gallery_next {
		background-image: url('gallery/gallery-next.png');
	}
	.gallery_prev {
		background-image: url('gallery/gallery-prev.png');
	}
	.shSelCtrl {margin:0px 0.3em;}
	.shSelSVG {width: 0.9em; height: 0.9em;}
	.shSelContainer {line-height: 0.9em;}
}

