.heritage-popup {
	position: fixed;
	inset: 0;
	box-sizing: border-box;
	width: 610px;
	max-width: calc(100% - 32px);
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
	overscroll-behavior: contain;
	margin: auto;
	padding: 60px 50px 50px;
	border: 0;
	border-radius: 5px;
	background: #121A50;
	color: #fff;
	font-family: inherit;
}

html.heritage-popup-open {
	overflow: hidden;
}

html.heritage-popup-open body {
	position: fixed;
	top: var(--heritage-scroll-top);
	left: 0;
	right: 0;
	overflow: hidden;
}

.heritage-popup::backdrop {
	background: rgba(0, 0, 0, 0.55);
}

.heritage-popup h2 {
	margin: 0 0 12px;
	font-size: 24px;
	line-height: 1.25;
	font-weight: 700;
	color: inherit;
}

.heritage-popup p {
	margin: 0 0 14px;
	color: inherit;
}

.heritage-popup__close {
	position: absolute;
	top: 10px;
	right: 14px;
	padding: 4px 8px;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.heritage-popup__contact {
	color: inherit;
	font-weight: 700;
	text-decoration: none;
	font-size: 0.8em;
}

.heritage-popup__close,
.heritage-popup__close:hover,
.heritage-popup__close:focus,
.heritage-popup__close:focus-visible,
.heritage-popup__close:active {
	border: none;
	outline: none;
	box-shadow: none;
}

.heritage-popup__contact:hover {
	text-decoration: underline;
}

@media (max-width: 600px) {
	.heritage-popup h2 {
		font-size: 20px;
	}

	.heritage-popup {
		padding: 48px 24px 32px;
	}
}
