/* Frontend layout + modal styles for the Impact Map block. */
.wp-block-group:has(.baytek-impact-map) {
	overflow: hidden;
}
.baytek-impact-map {
	position: relative;
	display: flex;
	align-items: start;
	justify-content: space-between;
	@media(max-width: 768px) {
		flex-direction: column-reverse;
	}
}
.region-focus-area-listing {
	width: 100%;
	@media(min-width: 768px) {
		max-width: clamp(18.875rem, -0.72rem + 31.90vw, 28.625rem);
	}
	
}
.baytek-impact-map__svg svg {
	width: 100%;
	max-width: clamp(61.1875rem, 4.04rem + 89.29vw, 86.1875rem);
	max-height: 237px;
	@media(min-width: 768px) {
		position: absolute;
		top: 0;
		left: clamp(8.75rem, 1.25rem + 15.63vw, 15.625rem);
		width: 150%;
		height: 100%;
		max-height: 100%;
	}
}
.baytek-impact-map__svg {
	flex: 1 1 auto;
	flex-shrink: 0;
	min-width: 0;
	@media(min-width: 768px) {
		height: 100%;
		min-height: 720px;
	}
	
}
.region-focus-area-listing {
	flex: 0 0 auto;
}
.baytek-impact-map__svg svg .is-clickable {
	cursor: pointer;
	transition: fill 0.2s ease, opacity 0.2s ease;
}

.baytek-impact-map__svg svg .is-clickable:hover,
.baytek-impact-map__svg svg .is-clickable:focus {
	opacity: 0.8;
}

.baytek-impact-map__svg svg .is-region-highlighted {
	fill: var(--wp--preset--color--blue-800);
}

.baytek-impact-map__list,
.baytek-impact-map__focus-areas {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--wp--preset--spacing--40);
}

.baytek-impact-map__list-item {
	margin: 0;
}

.baytek-impact-map__region-button,
.baytek-impact-map__focus-button {
	width: 100%;
	text-align: left;
	font-size: var(--wp--preset--font-size--large);
	border: 0;
	cursor: pointer;
	background-color: transparent;
	font-weight: 400;
	padding: 0;
	color: var(--wp--preset--color--brown-800);
	font-family: var(--wp--preset--font-family--manrope);
}
.baytek-impact-map__region-button:is(:hover, :focus),
.baytek-impact-map__focus-button:is(:hover, :focus) {
	color: var(--wp--preset--color--blue-800);
	font-weight: 800;
}

.baytek-impact-map__accordion {
	background-color: transparent !important;
	border-bottom: 1px solid var(--wp--preset--color--brown-600);
	padding-bottom: var(--wp--preset--spacing--40);
	margin-bottom: var(--wp--preset--spacing--40);
	border-radius: 0;
}
.baytek-impact-map__accordion .content {
	background-color: transparent !important;
	padding-left: 0;
	padding-right: 0;
	padding-top: var(--wp--preset--spacing--40);
}

.baytek-impact-map__accordion:last-of-type {
	margin-bottom: 0;
}

.baytek-impact-map__accordion-summary {
	list-style: none;
	cursor: pointer;
	font-size: 35px;
	font-weight: 700;
	color: var(--wp--preset--color--brown-800);
	font-family: var(--wp--preset--font-family--manrope);
	padding: 0;
}

.baytek-impact-map__accordion-summary::-webkit-details-marker {
	display: none;
}

.baytek-impact-map__accordion-summary::before {
	color: var(--wp--preset--color--brown-800);
	right: 0;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 400;
}

/* .baytek-impact-map__list-item.has-details .baytek-impact-map__region-button {
	border-color: #7b5f4b;
} */

.baytek-impact-map__modal {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	max-width: 1550px;
	padding: 0;
	@media(max-width: 1550px) {
		margin-left: var(--wp--preset--spacing--40) !important;
    	margin-right: var(--wp--preset--spacing--40) !important;
	}

}
.baytek-impact-map__modal[open] {
	display: flex;
	overflow: visible;
	margin-top: 7.5rem !important;
	margin-bottom: var(--wp--preset--spacing--70) !important;
	max-height: calc(100vh - 120px) !important;
}
.baytek-impact-map__modal form.close {
	top: -84px;
}
.baytek-impact-map__modal::backdrop {
	background-color: var(--wp--preset--color--black);
	opacity: 0.80;
}

.baytek-impact-map__modal.is-open {
	display: flex;
}

.baytek-impact-map__modal-backdrop {
	display: none;
}

.baytek-impact-map__modal-content {
	position: relative;
	width: 100%;
	max-height: 85vh;
	overflow: auto;
	padding: 0 !important;
	/* padding: var(--wp--preset--spacing--60); */
}
.baytek-related-posts {
	background-color: var(--wp--preset--color--grey);
	padding: clamp(1.5rem, 0.65rem + 3.65vw, 4rem);
}

.baytek-impact-map__modal-title {
	margin-top: 0;
	margin-bottom: var(--wp--preset--spacing--20);
}

.baytek-impact-map__modal-close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	border: none;
	background: transparent;
	font-size: 1.5rem;
	cursor: pointer;
}
.baytek-impact-map__modal-content.has-no-image .wp-block-columns {
	gap: 0 !important;
}
.baytek-impact-map__modal-content.has-no-image .wp-block-column:first-child {
	display: none;
}
.baytek-impact-map__modal-image img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 1rem;
}

.baytek-impact-map-modal-open {
	overflow: hidden;
}

@media (max-width: 900px) {
	.baytek-impact-map {
		grid-template-columns: 1fr;
	}
}
