.evpop {
	border: 0;
	padding: 0;
	margin: auto;
	width: 100%;
	max-width: min(var(--evpop-w, 700px), 94vw);
	max-height: 92vh;
	background: #fff;
	color: #222;
	border-radius: 10px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
	overflow: hidden;
}
.evpop[open] { animation: evpop-in .25s ease-out; }
.evpop::backdrop { background: rgba(0, 0, 0, .6); }

.evpop--image { background: transparent; width: auto; line-height: 0; }
.evpop--image .evpop__img { display: block; max-width: 100%; max-height: 92vh; width: auto; height: auto; margin: 0 auto; }

.evpop__body { max-height: 92vh; overflow: auto; }
.evpop__body .evpop__img { display: block; width: 100%; height: auto; }
.evpop__content { padding: 1.25rem 1.5rem 1.5rem; }
.evpop__title { margin: 0 0 .75rem; font-size: 1.5rem; line-height: 1.25; }
.evpop__text > :last-child { margin-bottom: 0; }
.evpop__text img { max-width: 100%; height: auto; }

.evpop__close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .65);
	color: #fff;
	font-size: 24px;
	line-height: 36px;
	text-align: center;
	cursor: pointer;
	padding: 0;
}
.evpop__close:hover, .evpop__close:focus-visible { background: #000; }

html.evpop-lock { overflow: hidden; }

@keyframes evpop-in {
	from { opacity: 0; transform: translateY(12px) scale(.98); }
	to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.evpop[open] { animation: none; }
}
