
.media_viewer {
	margin: auto;
	width: 100%;
	height: 100vh;
	overflow: hidden;
	clip-path: 0 0;
	transform: translatez(0);
	position: fixed;
	top: 0px;
	left: 0px;
	z-index: 1000;
	display: none;
}

.media_viewer_background {
	position: absolute;
	background-color: black;
	width: 100%;
	height: 100vh;
	z-index: 1001;
	opacity: 0.8;
}

.media_viewer_caption {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 1005;
	color: black;
	background-color: white;
	font-size: 16px;
	text-align: left;
	line-height: default;
	padding: 20px;
	
}

.media_viewer_caption a {
 color: black;	
 text-decoration: underline;
}


.media_viewer_next,
.media_viewer_prev {
	position: fixed;
	width: 100px;
	height: 100%;
	right: 10px;
	top: 0px;
	z-index: 1005;
	cursor: pointer;
	color: lightgrey;
	font-size: 60px;
	text-align: right;
	padding-top: calc(50vh - 50px);
}

.media_viewer_prev {
	left: 10px;
	text-align: left;
}

.media_viewer_next:HOVER,
.media_viewer_prev:HOVER {
	color: white;
}

.media_viewer_close {
	background-color: white;
	position: fixed;
	top: 0px;
	right: 100px;
	padding: 15px;
	background-color: lightgrey;
	z-index: 1005;
	cursor: pointer;
	font-size: 1.4em;
}

.media_viewer_close:HOVER {
	background-color: white;

}


.media_viewer_image {
	position: fixed;
	width: 100%;
	height: 100vh;
	z-index: 1003;
	background-position: center;
	background-size: contain;
	background-repeat: no-repeat;

}

.media_viewer_image video {
	width: 100%;
	height: 100%;
	z-index: 1004;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;

}