#venue-map {
	background-size: auto;
	background-position: center;
	background-color: #333333;
}

#venue-map h3 {
	font-size: 1.2rem;
	font-weight: 700;
	white-space: break-spaces;
	margin-top: 0;
	color: black;
}

#venue-map .gm-style-iw-d {
	max-width: 200px;
}

#venue-map p {
	font-size: 0.8rem;
}

a[name] {
	position: absolute;
	width: 10px;
	height: 10px;
	margin: -4rem 0 0;
}

.events-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;

	grid-template-columns: repeat(1, 1fr);

	@media (min-width: 440px) {
		grid-template-columns: repeat(2, 1fr);
	}

	@media (min-width: 720px) {
		grid-template-columns: repeat(2, 1fr);
	}

	@media (min-width: 1040px) {
		grid-template-columns: repeat(4, 1fr);
	}

	&.recommended {
		display: grid;
		grid-template-columns: 1fr;
		gap: 1rem;

		@media (min-width: 520px) {
			grid-template-columns: repeat(
				auto-fit,
				minmax(calc((100% - 1rem) / 2), 1fr)
			);
		}

		@media (min-width: 820px) {
			grid-template-columns: repeat(3, minmax(0, 1fr));
		}

		&.recommended--horizontal {
			grid-template-columns: minmax(0, 1fr);
		}
	}
}

.events-weekday {
	text-transform: capitalize;
	font-size: 1.8rem;
	font-weight: 300;
	display: flex;
	justify-content: space-between;

	@media (min-width: 520px) {
		font-size: 2.5rem;
	}

	svg {
		width: 44px;
		color: black;
		height: auto;
	}
}

.recommended {
	img {
		width: 100%;
		aspect-ratio: 2/1;
		height: auto;
		object-fit: cover;
	}
}

.event-card {
	background: white;
	padding: 2rem;

	.recommended & {
		padding: 0;
		a,
		p,
		ul {
			margin: 1rem;

			@media (min-width: 520px) {
				margin: 2rem;
			}
		}

		a {
			height: unset;
		}

		.event-ig-pill {
			display: inline-block;
			margin: -0.5rem 1rem 0;
			padding: 0.2rem 0.8rem;
			border-radius: 1rem;
			background: var(--color-hint);
			color: rgb(111, 111, 111);
			font-size: 0.75rem;
			font-weight: 400;
			text-decoration: none;

			@media (min-width: 520px) {
				margin: -1rem 2rem 0;
			}

			&:hover {
				background: #ddd;
				text-decoration: none;
			}
		}
	}

	a.event-title {
		margin-bottom: 0.8rem;
	}

	a {
		color: inherit;
		display: block;
		font-size: 1.5rem;
		font-weight: 600;
		height: 3.8rem;
		overflow: hidden;
	}

	ul {
		list-style: none;
		margin: 0;
		padding: 0.2rem 0 0;
	}

	li {
		display: flex;
		gap: 0.5rem;
		margin: 4px 0;
	}
}

.section-intro button.link {
	background: none;
	border: none;
	padding: 0;
	margin: 0 0.2em;
	font: inherit;
	color: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.events-map {
	position: relative;
	isolation: isolate;
	width: 100%;
	height: min(800px, 60vh);
	background: #333;
}

.events-map > img,
.events-map > #venue-map {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.events-map > img {
	object-fit: cover;
	z-index: 1;
}

.events-map > img[hidden] {
	display: none;
}

.recommended .event-card--horizontal {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	min-width: 0;
	overflow-wrap: anywhere;
	text-align: left;

	@media (min-width: 820px) {
		grid-template-columns: repeat(3, minmax(0, 1fr));

		> img {
			align-self: stretch;
			height: 100%;
		}
	}
}

.recommended .event-card--horizontal > * {
	min-width: 0;
}

.recommended .event-card--horizontal .event-card-summary {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
	padding: 3rem;
}

.recommended .event-card--horizontal a,
.recommended .event-card--horizontal p,
.recommended .event-card--horizontal .event-ig-pill,
.recommended .event-card--horizontal .event-details {
	margin: 0;
}

.recommended .event-card--horizontal a {
	overflow: visible;
}

.recommended .event-card--horizontal .event-details {
	padding: 1rem;
}

.events .event-card {
	min-width: 0;
	overflow-wrap: anywhere;
}

.events .events-weekday {
	align-items: center;
	gap: 1rem;
}

.events .events-weekday a {
	display: inline-flex;
	min-width: 44px;
	min-height: 44px;
	align-items: center;
	justify-content: center;
}

.events .event-card a:focus-visible,
.recommended .event-card a:focus-visible,
.events .events-weekday a:focus-visible,
.events-map :focus-visible {
	outline: 3px solid black;
	outline-offset: 2px;
}

.events-map :focus-visible {
	outline-color: red;
}
