.modal,
.modal_screen {
	position: fixed;
	z-index: 1000;
}

.modal_screen {
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	bottom: 0;
	right: 0;
	background: rgba(0, 0, 0, .5);
	display: none;
}
.modal {
	visibility: hidden;
}
.modal-open {
	visibility: visible;
}
.modal-open + .modal_screen {
	display: block
}

.modal-open {
	z-index: 1001;
	background: #fff;
	box-sizing: border-box;
	padding: 5vh;
	top: 10vh;
	left: 10vw;
	height: 80vh;
	width: 80vw;
	overflow: auto;
}

.modal_close {
	position: absolute;
	top: 1vh;
	right: 1vh;
	border: none;
	cursor: pointer;
	background: transparent;
	margin: 0;
	font-size: 1.4rem;
	width: 1.4em;
	height: 1.4em;
	line-height: 1;
	overflow: hidden;
	text-indent: -999px;
}
.modal_close:before,
.modal_close:after {
	content: "";
	height: 1em;
	width: .1em;
	top: .2em;
	left: .65em;
	background: #777;
	position: absolute;
	transform: rotate(-45deg);
}
.modal_close:after {
	transform: rotate(45deg);
}


/* inert polyfill styles */
[inert] {
	pointer-events: none;
	cursor: default;
}

[inert],
[inert] * {
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}