.popup {
	position:fixed;
	display:block;
	left:0;
	top:0;
	z-index:1000;
}
.popup:not(:empty) {
	right:0;
	bottom:0;
	width: 100%;
	height: 100vh;
	background: rgb(0,0,0,.5);
	overflow-y: scroll;
}
.popup .popup-wrap {
	display: block;
	position: relative;
	border:  2px solid #000;
	box-shadow: 0 0 10px rgb(0,0,0,.5);
	margin: 3rem calc(max(0px, 50% - 384px) + 3rem);
}
.popup .popup-head,
.popup .popup-body,
.popup .popup-foot {
	padding: 1rem;
}
.popup .popup-head + .popup-body,
.popup .popup-body + .popup-foot {
	border-top-width:1px;
	border-top-style:solid;
}
.popup .popup-head .popup-closer {
	width: 2rem;
	height: 2rem;
	line-height: 2rem;
	text-align: center;
	right: 1rem;
	top: 1rem;
	cursor: pointer;
	float: right;
}
.popup-head > h1:last-child,
.popup-body > p:last-child,
.popup-body > article > p:last-child,
.popup-body > dl:last-child,
.popup-body > article > dl:last-child {
	margin-bottom: 0;
}