.ampersand-map {
	background: #f3f3f1;
	height: 750px;
	position: relative;
	width: 100%;
}

.ampersand-map__canvas {
	height: 100%;
	width: 100%;
}

.ampersand-map__sr-only {
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.ampersand-map__directions {
	background: #173149;
	color: #fff;
	font-family: 'Apercu-Regular', sans-serif;
	font-size: 12px;
	left: 24px;
	letter-spacing: 1px;
	padding: 12px 18px;
	position: absolute;
	text-transform: uppercase;
	top: 24px;
	z-index: 2;
}

.ampersand-map__directions:hover,
.ampersand-map__directions:focus {
	background: #fff;
	color: #173149;
	text-decoration: none;
}

.ampersand-map__marker {
	background: transparent;
	border: 0;
	cursor: pointer;
	display: block;
	padding: 0;
	width: 82px;
}

.ampersand-map__marker img {
	display: block;
	height: auto;
	width: 100%;
}

.ampersand-map__marker:focus-visible {
	outline: 2px solid #173149;
	outline-offset: 2px;
}

.ampersand-map__place-pin {
	background: transparent;
	border: 0;
	cursor: pointer;
	height: 38px;
	padding: 0;
	width: 32px;
}

.ampersand-map__place-pin::before {
	background: #173149;
	border-radius: 50% 50% 50% 0;
	content: '';
	height: 22px;
	left: 5px;
	position: absolute;
	top: 8px;
	transform: rotate(-45deg);
	width: 22px;
}

.ampersand-map__place-pin::after {
	background: #e0e6e9;
	border-radius: 50%;
	content: '';
	height: 7px;
	left: 12.5px;
	position: absolute;
	top: 15.5px;
	width: 7px;
}

.ampersand-map__place-pin:focus-visible {
	outline: 2px solid #173149;
	outline-offset: 2px;
}

.ampersand-map__place-popup .mapboxgl-popup-content {
	background: #e0e6e9;
	color: #173149;
	font: 14px/1.5 'Apercu-Regular', sans-serif;
	overflow-wrap: anywhere;
	padding: 20px 28px 20px 20px;
}

.ampersand-map__place-popup h3 {
	font-size: 20px;
	margin: 0 0 10px;
}

.ampersand-map__place-popup p {
	margin: 0 0 12px;
	white-space: pre-line;
}

.ampersand-map__place-popup a {
	color: inherit;
	text-decoration: underline;
}

.ampersand-map__fallback {
	background: #fff;
	left: 50%;
	margin: 0;
	max-width: 420px;
	padding: 24px;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: calc(100% - 40px);
	z-index: 2;
}

.ampersand-map__fallback-card {
	background: #fff;
	box-shadow: 0 8px 30px rgba(23, 49, 73, .12);
	color: #173149;
	display: none;
	font-family: 'Apercu-Regular', sans-serif;
	left: 50%;
	max-width: 420px;
	padding: 32px;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: calc(100% - 40px);
	z-index: 2;
}

.ampersand-map__fallback-card strong,
.ampersand-map__fallback-card span {
	display: block;
}

.ampersand-map__fallback-card strong {
	font-size: 20px;
	margin-bottom: 12px;
}

.ampersand-map__fallback-card span {
	line-height: 1.6;
}

.ampersand-map--fallback .ampersand-map__canvas,
.ampersand-map--unavailable .ampersand-map__canvas {
	background-color: #edf0ec;
	background-image:
		linear-gradient(31deg, transparent 47%, rgba(255, 255, 255, .95) 48%, rgba(255, 255, 255, .95) 51%, transparent 52%),
		linear-gradient(121deg, transparent 44%, rgba(255, 255, 255, .8) 45%, rgba(255, 255, 255, .8) 48%, transparent 49%);
	background-size: 210px 170px, 270px 220px;
}

.ampersand-map--fallback .ampersand-map__fallback-card,
.ampersand-map--unavailable .ampersand-map__fallback-card {
	display: block;
}

.ampersand-map--unavailable .ampersand-map__fallback-card::before {
	color: #173149;
	content: 'Interactive map unavailable. ';
	font-family: 'Apercu-Regular', sans-serif;
}

@media (max-width: 767px) {
	.ampersand-map__directions {
		left: 16px;
		top: 16px;
	}

	.ampersand-map__marker {
		width: 66px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ampersand-map .mapboxgl-canvas {
		scroll-behavior: auto;
	}
}
