.overlay {
	display: none;
	justify-content:  center;
	position: fixed;
	left: 0px;
	right: 0px;
	top: 0px;
	bottom: 0px;
	z-index: 3;
}
.overlay[data-src*="."] {
	cursor:zoom-out;
}
.overlay:not([data-src*="."]) {
	overflow: auto;
}
.overlay-image {
	min-width: 100vw;
	min-height: 100vh;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	
	display: grid;
	text-align: center;
	vertical-align: middle;
	grid-template-columns: 1fr;	
}
.overlay-image iframe {
    margin: auto!immportant;
    margin-top: 100px!important;
    min-width: 80vw;
    min-height: 80vh;
    max-width: 100%!important;
    width: 100%;
    margin: 0px;
}
.overlay-image > *:not(style, script) {
	margin: auto;
	display: inline-block;
	max-width: 80vw!important;
}
.overlay-shown .overlay {
	display: flex;
	flex-direction: column;
}

a[rel="overlay"][href*="."] img, img[rel="overlay"] {
	cursor: zoom-in;
}

body[overlay-state]:not([overlay-state="open"]) .overlay {
	pointer-events: none;
	opacity: 0;
}