#modal_wrapper
{
	position: fixed;
	background: rgba(0,0,0,.75);
	backdrop-filter: blur(20px);
	height: 100vh;
	width: 100%;
	z-index: 5;
	display: none;
	align-items: center;
	justify-content: center;
}

@keyframes _modal
{
	0%
	{
		opacity: 0;
	}
	100%
	{
		opacity: 1;
	}
}

@keyframes _modalclose
{
	0%
	{
		opacity: 1;
	}
	100%
	{
		opacity: 0;
	}
}

#modal_box
{
	
	margin: auto;
	padding: 5px;
	max-height: calc(100vh - 40px);
	max-width: calc(100% - 48px);/* clears space for the close button */
	background: #fff;
	border: 1px #444 solid;
	box-shadow: 0 0 10px #000;
	animation: _modal .33s linear;
}

.modal_box_close
{
	animation: _modalclose .5s linear !important;
}

.close_btn
{
	position: absolute;
	top: 10px;
	right: 30px;
	margin-top: 15px;
	padding: 20px;
	border-radius: 50%;
	font:  normal 1em "oswaldvar", sans-serif;
	text-transform: uppercase;
	color: #c5c5c0;
	text-align: center;
	text-shadow: 0 0 1px #000;
	background: #444 url(/IMAGES/close_modal.png) 50% 50% no-repeat;
	transition: background-color 1s;
}
	.close_btn:hover
	{
		cursor: pointer;
		color: #fff;
		background-color: #c20;
	}

#modal_box img
{
	display: block;
	max-width: 100%;
	max-height: calc(90vh - 40px);
}

@media only screen and (max-width: 800px),
only screen and (max-height: 800px)
{
	#modal_box
	{
		max-height: calc(100vh - 10px);
	}
}