.kbh-er-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: 24px;
	margin-block: 28px;
}

.kbh-er-card {
	overflow: hidden;
	border: 1px solid rgba(23, 52, 62, .14);
	background: #fff;
}

.kbh-er-card__image,
.kbh-er-card__image img {
	display: block;
	width: 100%;
}

.kbh-er-card__image img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.kbh-er-card__body {
	padding: 22px;
}

.kbh-er-card__date,
.kbh-er-popup__eyebrow {
	color: #648179;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.kbh-er-card h2 {
	margin: 8px 0 10px;
	font-family: Georgia, serif;
	font-size: clamp(22px, 3vw, 30px);
	line-height: 1.2;
}

.kbh-er-card__link,
.kbh-er-popup__link,
.kbh-er-booking-link a {
	display: inline-flex;
	gap: 10px;
	margin-top: 8px;
	font-weight: 700;
}

.kbh-er-booking-link {
	margin-top: 28px;
	padding: 18px 22px;
	background: #f5f2eb;
}

.kbh-er-empty {
	padding: 24px;
	background: #f5f2eb;
}

.kbh-er-popup[hidden] {
	display: none;
}

.kbh-er-popup {
	position: fixed;
	z-index: 99999;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 20px;
}

.kbh-er-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 29, 35, .72);
}

.kbh-er-popup__dialog {
	position: relative;
	width: min(100%, 520px);
	padding: clamp(28px, 6vw, 48px);
	background: #fcfbf8;
	color: #17343e;
	box-shadow: 0 20px 70px rgba(0, 0, 0, .24);
}

.kbh-er-popup__dialog h2 {
	margin: 0 0 14px;
	font-family: Georgia, serif;
	font-size: clamp(30px, 6vw, 44px);
	line-height: 1.1;
}

.kbh-er-popup__close {
	position: absolute;
	top: 12px;
	right: 14px;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

body.kbh-er-popup-open {
	overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
	.kbh-er-popup:not([hidden]) .kbh-er-popup__dialog {
		animation: kbh-er-popup-enter .22s ease-out both;
	}

	@keyframes kbh-er-popup-enter {
		from {
			opacity: 0;
			transform: translateY(12px);
		}
		to {
			opacity: 1;
			transform: translateY(0);
		}
	}
}
