.gp-popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
	pointer-events: none;
}
.gp-popup[hidden] {
	display: none !important;
}
.gp-popup .gp-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	opacity: 0;
	transition: opacity 0.25s ease;
	display: none;
}
.gp-popup.gp-has-overlay .gp-overlay {
	display: block;
	pointer-events: auto;
}
.gp-popup .gp-box {
	position: relative;
	flex: 0 0 auto;
	overflow: hidden;
	background: transparent;
	border-radius: 8px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
	box-sizing: border-box;
	pointer-events: auto;
	opacity: 0;
	transform: translateY(16px) scale(0.98);
	transition: opacity 0.25s ease, transform 0.25s ease;
	outline: none;
}
.gp-popup.gp-open .gp-overlay {
	opacity: 1;
}
.gp-popup.gp-open .gp-box {
	opacity: 1;
	transform: none;
}
.gp-popup .gp-content,
.gp-popup .gp-content a,
.gp-popup .gp-content picture {
	display: block;
	line-height: 0;
}
.gp-popup .gp-content img {
	display: block;
	width: auto;
	height: auto;
	max-width: min(var(--gp-w, 600px), calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
}
.gp-popup .gp-close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 10;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font: 400 22px/32px Arial, sans-serif;
	text-align: center;
	cursor: pointer;
	box-shadow: none;
}
.gp-popup .gp-close:hover,
.gp-popup .gp-close:focus-visible {
	background: #000;
	color: #fff;
}
.gp-popup.gp-pos-bottom-right {
	align-items: flex-end;
	justify-content: flex-end;
}
.gp-popup.gp-pos-bottom-left {
	align-items: flex-end;
	justify-content: flex-start;
}
html.gp-lock {
	overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
	.gp-popup .gp-box,
	.gp-popup .gp-overlay {
		transition: none;
	}
}
