.mfp-bg { top: 0; left: 0; width: 100%; height: 100%; z-index: 1042; overflow: hidden; position: fixed; background: #0d0d0d; }
.mfp-wrap { top: 0; left: 0; width: 100%; height: 100%; z-index: 1043; position: fixed; outline: none !important; -webkit-backface-visibility: hidden; }
.mfp-container { text-align: center; position: absolute; width: 100%; height: 100%; left: 0; top: 0; padding: 0 8px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } 
.mfp-container:before { content: ''; display: inline-block; height: 100%; vertical-align: middle; }
.mfp-align-top .mfp-container:before { display: none; }

.mfp-content { position: relative; display: inline-block; vertical-align: middle; margin: 0 auto; text-align: left; z-index: 1045; }
.mfp-iframe-holder .mfp-content { width: 100%; height: 100%; text-align: center; position: relative; overflow: hidden; }
.mfp-iframe-holder .mfp-content iframe.video { width: 853px; height: 480px; margin: 0 auto; position: absolute; top: 50%; margin-top: -240px; margin-left: -426px; } /* Container/Videogroesse anpassen */ 
.mfp-iframe-holder .mfp-content .mfp-iframe-scaler.galerie { width: 100%; max-width: 1000px; height: 100%; margin: 0 auto; position: relative; } 
.mfp-iframe-holder .mfp-content iframe.galerie { width: 100%; max-width: 1000px; height: 100%; } 

.mfp-preloader { -webkit-user-select: none; -moz-user-select: none; user-select: none; }
.mfp-loading.mfp-figure { display: none; } 
.mfp-hide { display: none !important; }
.mfp-preloader { color: #cccccc; position: absolute; top: 50%; width: auto; text-align: center; margin-top: -0.8em; left: 8px; right: 8px; z-index: 1044; } 
.mfp-preloader a { color: #cccccc; }
.mfp-preloader a:hover { color: white; }
.mfp-s-ready .mfp-preloader { display: none; } 
.mfp-s-error .mfp-content { display: none; }
button.mfp-close, .mfp-close, .mfp-counter  { color: white; position: absolute; top: 4px; right: -40px; background: url(img/icons.png) no-repeat 15px 12px; text-decoration: none; border: none; width: 50px; height: 50px; cursor: pointer; z-index: 9999; }
.mfp-counter {display: none;}
/* Main image in popup */
img.mfp-img { width: auto; max-width: 100%; height: auto; display: block; line-height: 0; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; padding: 40px 0 40px; margin: 0 auto; }
/* The shadow behind the image */
.mfp-figure { line-height: 0; }
.mfp-figure:after { content: ''; position: absolute; left: 0; top: 40px; bottom: 40px; display: block; right: 0; width: auto; height: auto; z-index: -1; box-shadow: 0 0 4px rgba(0, 0, 0, 0.6); background: #444444; }
.mfp-figure small { color: #bdbdbd; display: block; font-size: 12px; line-height: 14px; }
.mfp-bottom-bar { margin-top: -2em; position: absolute; font-size: .85em; top: 100%; left: 0; width: 100%; }
.mfp-title { text-align: left; line-height: 1.5; color: #fff; word-wrap: break-word; padding-right: 36px; }
.mfp-image-holder .mfp-content { max-width: 100%; }

@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px) {
	/* Remove all paddings around the image on small screen */
	.mfp-img-mobile .mfp-image-holder { padding-left: 0; padding-right: 0; }
	.mfp-img-mobile img.mfp-img { padding: 0; }
	.mfp-img-mobile .mfp-figure { /* The shadow behind the image */ }
	.mfp-img-mobile .mfp-figure:after { top: 0; bottom: 0; }
	.mfp-img-mobile .mfp-figure small { display: inline; margin-left: 5px; }
	.mfp-img-mobile .mfp-bottom-bar { background: rgba(0, 0, 0, 0.6); bottom: 0; margin: 0; top: auto; padding: 3px 5px; position: fixed; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
	.mfp-img-mobile .mfp-bottom-bar:empty { padding: 0; }
}
@media all and (max-width: 900px) {
	.mfp-container { padding-left: 6px; padding-right: 6px; } 
}

.mfp-ie7 .mfp-img { padding: 0; }
.mfp-ie7 .mfp-bottom-bar { width: 600px; left: 50%; margin-left: -300px; margin-top: 5px; padding-bottom: 5px; }
.mfp-ie7 .mfp-container { padding: 0; }
.mfp-ie7 .mfp-content { padding-top: 44px; }
