.wb-event-card-list {
	/* Event card CTAs intentionally use the neutral WB gray, not the KV context color. */
	--wb-ctx-btn-bg: var(--wb-grau, #727575);
	--wb-ctx-btn-border: var(--wb-grau, #727575);

	display: grid;
	gap: 1.25rem;
	grid-template-columns: 1fr;
	grid-auto-rows: 1fr;
}

.wb-event-card-list--columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wb-event-card-list--columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wb-event-card-list--columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.wb-event-card-list__card {
	height: 100%;
	box-shadow: 0 0.1875rem 0.75rem rgba(0, 0, 0, 0.12);
}
.wb-event-card-list__card {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
	align-items: stretch;
}

.wb-event-card-list__card:hover {
	box-shadow: 0 0.75rem 1.75rem rgba(0, 0, 0, 0.22);
}

.wb-event-card-list__image .wb-card-img {
	object-fit: cover;
	object-position: center;
}

.wb-event-card-list__image {
	height: auto;
	aspect-ratio: 559 / 373;
}

.wb-event-card-list__details {
	display: flex;
	flex-direction: column;
	justify-content: center;

	padding: 0.875rem 1rem;
}

.wb-event-card-list .wb-card .wb-card-title {
	color: var(--wb-grau, #727575) !important;
}

/* Keep native modal buttons visually identical to event links. */
.wb-event-card-list__link {
	font-family: inherit;
	letter-spacing: normal;
}

button.wb-event-card-list__link {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
}

.wb-event-card-list__price {
	margin: 0 0 0.5rem;
	font-size: 0.875rem;
	font-weight: 700;
}

.wb-event-card-list__popover {
	position: fixed;
	inset: 0;
	width: min(44rem, calc(100vw - 2rem));
	max-height: min(85vh, 48rem);
	margin: auto;
	padding: 1.5rem 1.25rem 1.25rem;
	overflow: auto;
	background: #fff;
	border: 0;
	border-radius: var(--wb-ctx-radius, 0.9375rem);
	box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.25);
}

.wb-event-card-list__popover::backdrop {
	background: rgba(0, 0, 0, 0.55);
}

html.wb-event-card-list-modal-open,
body.wb-event-card-list-modal-open {
	overflow: hidden;
	overscroll-behavior: none;
}

.wb-event-card-list__popover-close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	width: 2rem;
	height: 2rem;
	padding: 0;
	color: inherit;
	background: transparent;
	border: 0;
	border-radius: 50%;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.wb-event-card-list__popover-content > :first-child { margin-top: 0; }
.wb-event-card-list__popover-content > :last-child { margin-bottom: 0; }

@media (max-width: 767px) {
	.wb-event-card-list { grid-template-columns: 1fr; }
}
