#overlay {
    opacity: 0;
    pointer-events: none;
    position: fixed;
    top: 10em;
    left: 0;
    height: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 1.0);
    padding: 0rem;
    z-index: 1000;
	scroll-behavior: smooth; 
}
#overlay.open {
    top: 0em;
    height: 100%;
    opacity: 1;
    pointer-events: all;
    transition: all 0.5s ease;
}
#overlay .close {
    position: fixed;
    top: 1rem;
	right: 1rem;
    display: block;
	border-radius:50%;
	height:48px;
	width:48px;
    background: #003888 url("/layout/exit-white.svg") no-repeat center center;
	background-size: 25px;
    text-indent: 1000em;
    z-index: 100000;
	color:#FFF;
}
#overlay .close:hover {
	background-color: #6893C5;
}
#overlay img {
	vertical-align: bottom;
}
.overlay_media {
	height:100%;
	width: 100%;
	position:relative;
	text-align: left;
}
#overlay_info {
    position: fixed;
    width: 33%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 0px solid white;
	padding:1em;
	text-shadow: 2px 2px 8px #000;
	color:#eee;
	text-align: left;
}
.overlay_media.portrait #overlay_info {
    width: 70%;
}
.overlay_media video {
	height:100%;
}
.overlay_media.portrait img {
	width:auto;
	height: 100%;
}
.overlay_media.landscape img {
	/*max-width: 100%;*/
	width: 100%;
	height:auto;
}
#prevnext {
	border: 0px solid red;
	position:fixed;
	top: 50%;
	right:1rem;
}
#prev, #next, #more {
	background-color:#eee;
	transition: all 0.5s ease 0s;
	padding:1rem;
	border-radius:50%;
	height:48px;
	width:48px;
	cursor:pointer;
	margin:1rem 0;
}
#prev:hover, #next:hover, #more:hover {
	background-color: #6893C5;
}
#prev::after, #next::after, #more::after {
    content: '';
    border: solid #515151;
    border-width: 0 4px 4px 0;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    display: inline-block;
	position:absolute;
	padding: 8px;
	margin-left: -5px;
	margin-top: -2px;
}
#prev::after {
    -webkit-transform: rotate(140deg);
	transform: rotate(140deg);
	margin-left: 2px;
}
#terminBtn {
  margin-top: 1.5em;
  max-width: 250px;
  width: 100%;
  margin: 1.5em 0 0 0;
}