/*! NBG Popups 1.0.0 */
html.nbgpop-open { overflow: hidden; }
.nbgpop {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}
.nbgpop *, .nbgpop *::before, .nbgpop *::after { box-sizing: border-box; }
.nbgpop__ov {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, var(--nbgpop-ov, .8));
}
.nbgpop__box {
	position: relative;
	width: auto;
	max-width: min(var(--nbgpop-w, 640px), 100%);
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	background: #fff;
	padding: 7px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .45);
	outline: 0;
	overflow: visible;
}
.nbgpop__body {
	max-height: calc(100vh - 46px);
	max-height: calc(100dvh - 46px);
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	line-height: 1.4;
}
.nbgpop__body > :first-child { margin-top: 0; }
.nbgpop__body > :last-child { margin-bottom: 0; }
.nbgpop__body a { display: block; }
.nbgpop__body picture { display: block; }
.nbgpop__body img {
	display: block;
	max-width: 100%;
	width: auto;
	height: auto;
	max-height: calc(100vh - 46px);
	max-height: calc(100dvh - 46px);
	margin: 0 auto;
}
.nbgpop__x {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #111;
	color: #fff;
	font: 700 22px/1 Arial, Helvetica, sans-serif;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}
.nbgpop__x[hidden] { display: none; }
.nbgpop__x:focus-visible { outline: 3px solid #4da3ff; outline-offset: 2px; }
@media (max-width: 480px) {
	.nbgpop { padding: 12px; }
	.nbgpop__x { top: -10px; right: -10px; }
}
