#hpo-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	padding: 24px;
	box-sizing: border-box;
}

#hpo-overlay.is-visible {
	display: flex;
}

.hpo-overlay__content {
	position: relative;
	max-width: 90vw;
	max-height: 90vh;
}

.hpo-overlay__image {
	display: block;
	max-width: 100%;
	max-height: 90vh;
	border-radius: 4px;
}

/* Pop-up met tekst (eventueel met afbeelding erboven) */
.hpo-overlay__content--text {
	width: 640px;
	max-width: 100%;
}

.hpo-overlay__body {
	max-height: calc(90vh - 48px);
	overflow-y: auto;
	background: #fff;
	color: #222;
	border-radius: 4px;
	box-sizing: border-box;
}

.hpo-overlay__body .hpo-overlay__image {
	width: 100%;
	height: auto;
	max-height: none;
	border-radius: 4px 4px 0 0;
}

.hpo-overlay__text {
	padding: 24px 28px;
	line-height: 1.6;
}

.hpo-overlay__text > :first-child {
	margin-top: 0;
}

.hpo-overlay__text > :last-child {
	margin-bottom: 0;
}

.hpo-overlay__text img {
	max-width: 100%;
	height: auto;
}

.hpo-overlay__close {
	position: absolute;
	top: -16px;
	right: -16px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #fff;
	color: #111;
	border: none;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.hpo-overlay__close:hover {
	background: #f2f2f2;
}

@media (max-width: 480px) {
	.hpo-overlay__close {
		top: 8px;
		right: 8px;
	}
}
