html.keiberg-popup-open, body.keiberg-popup-open { overflow: hidden; }

.keiberg-popup {
	position: fixed;
	inset: 0;
	z-index: 12000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.keiberg-popup[hidden] {
	display: none !important;
}


/* ==================================================
   OVERLAY
================================================== */

.keiberg-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.62);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
}


/* ==================================================
   POP-UP VENSTER
================================================== */

.keiberg-popup__dialog {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	width: min(920px, 100%);
	max-height: calc(100vh - 48px);
	overflow: hidden;
	background: #ffffff;
	border-radius: 2px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}


/* ==================================================
   AFBEELDING
================================================== */

.keiberg-popup__image {
	min-height: 100%;
	background: #f3f1eb;
}

.keiberg-popup__image img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 480px;
	object-fit: cover;
}


/* ==================================================
   INHOUD
================================================== */

.keiberg-popup__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 64px 56px 52px;
	overflow-y: auto;
}

.keiberg-popup__title {
	margin: 0 0 20px;
	padding: 0;
	font-size: clamp(32px, 4vw, 52px);
	line-height: 1.05;
	font-weight: 500;
	letter-spacing: -0.02em;
}

.keiberg-popup__content {
	margin-bottom: 28px;
	font-size: 17px;
	line-height: 1.7;
}

.keiberg-popup__content > *:first-child {
	margin-top: 0;
}

.keiberg-popup__content > *:last-child {
	margin-bottom: 0;
}


/* ==================================================
   KNOP
================================================== */

.keiberg-popup__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	min-height: 50px;
	padding: 13px 28px;
	text-decoration: none;
	text-transform: uppercase;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 1.2px;
	background: #222222;
	color: #ffffff !important;
	border: 1px solid #222222;
	transition:
		background-color 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease;
}

.keiberg-popup__button:hover,
.keiberg-popup__button:focus {
	background: transparent;
	color: #222222 !important;
}


/* ==================================================
   SLUITKNOP
================================================== */

.keiberg-popup__close {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin: 0;
	padding: 0;
	background: rgba(255, 255, 255, 0.92);
	color: #222222;
	border: 0;
	border-radius: 50%;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	cursor: pointer;
	font-family: Arial, sans-serif;
	font-size: 30px;
	font-weight: 300;
	line-height: 1;
	transition:
		transform 0.2s ease,
		background-color 0.2s ease;
}

.keiberg-popup__close:hover,
.keiberg-popup__close:focus {
	background: #ffffff;
	transform: rotate(90deg);
}


/* ==================================================
   NOOIT MEER TONEN
================================================== */

.keiberg-popup__never {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 24px;
	font-size: 14px;
	line-height: 1.4;
	cursor: pointer;
}

.keiberg-popup__never input {
	flex: 0 0 auto;
	width: 17px;
	height: 17px;
	margin: 1px 0 0;
}


/* ==================================================
   POP-UP ZONDER AFBEELDING
================================================== */

.keiberg-popup__dialog:not(:has(.keiberg-popup__image)) {
	display: block;
	width: min(620px, 100%);
}

.keiberg-popup__dialog:not(:has(.keiberg-popup__image))
.keiberg-popup__body {
	padding: 70px 64px 58px;
}


/* ==================================================
   OPEN-ANIMATIE
================================================== */

.keiberg-popup:not([hidden]) .keiberg-popup__overlay {
	animation: keibergPopupOverlayIn 0.25s ease both;
}

.keiberg-popup:not([hidden]) .keiberg-popup__dialog {
	animation: keibergPopupDialogIn 0.32s ease both;
}

@keyframes keibergPopupOverlayIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes keibergPopupDialogIn {
	from {
		opacity: 0;
		transform: translateY(18px) scale(0.98);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}


/* ==================================================
   TABLET EN MOBIEL
================================================== */

@media (max-width: 767px) {

	.keiberg-popup {
		align-items: flex-end;
		padding: 14px;
	}

	.keiberg-popup__dialog {
		display: block;
		width: 100%;
		max-height: calc(100vh - 28px);
		overflow-y: auto;
	}

	.keiberg-popup__image {
		min-height: 0;
	}

	.keiberg-popup__image img {
		height: 220px;
		min-height: 0;
	}

	.keiberg-popup__body {
		padding: 38px 26px 30px;
		overflow: visible;
	}

	.keiberg-popup__title {
		margin-bottom: 16px;
		font-size: clamp(28px, 9vw, 38px);
	}

	.keiberg-popup__content {
		margin-bottom: 24px;
		font-size: 16px;
		line-height: 1.6;
	}

	.keiberg-popup__button {
		align-self: stretch;
		width: 100%;
	}

	.keiberg-popup__close {
		top: 12px;
		right: 12px;
		width: 38px;
		height: 38px;
		font-size: 27px;
	}

	.keiberg-popup__dialog:not(:has(.keiberg-popup__image))
	.keiberg-popup__body {
		padding: 54px 26px 30px;
	}
}


/* ==================================================
   MINDER ANIMATIE INDIEN INGESTELD
================================================== */

@media (prefers-reduced-motion: reduce) {

	.keiberg-popup:not([hidden]) .keiberg-popup__overlay,
	.keiberg-popup:not([hidden]) .keiberg-popup__dialog {
		animation: none;
	}

	.keiberg-popup__close,
	.keiberg-popup__button {
		transition: none;
	}
}

