.folkflow-sound-map-instance {
	position: relative;
	margin-bottom: 1.5rem;
}

.folkflow-sound-map-wrap {
	width: 100%;
	min-height: 280px;
	z-index: 1;
}

/* Map root is both .folkflow-sound-map-wrap and .leaflet-container on the same element — no space between selectors. */
.folkflow-sound-map-wrap.leaflet-container {
	font-family: inherit;
}

/*
 * Leaflet sets .leaflet-container { background: #ddd }. With clip-path, that gray shows outside the polygon.
 * Use !important so theme rules cannot force an opaque fill; clear parent wrapper too when masking.
 */
.folkflow-sound-map-instance.folkflow-sound-map-instance--mask-outside {
	background: transparent !important;
}

.leaflet-container.folkflow-sound-map--mask-outside {
	background: transparent !important;
	background-color: transparent !important;
}

.leaflet-container.folkflow-sound-map--mask-outside .leaflet-map-pane {
	background: transparent !important;
}

.folkflow-sound-map-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	box-sizing: border-box;
}

.folkflow-sound-map-modal--hidden,
.folkflow-sound-map-modal[hidden] {
	display: none !important;
}

.folkflow-sound-map-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.folkflow-sound-map-modal__dialog {
	position: relative;
	z-index: 1;
	max-width: 42rem;
	width: 100%;
	max-height: 90vh;
	overflow: auto;
	background: #fff;
	color: #1a1a1a;
	padding: 1.25rem 1.5rem;
	border-radius: 6px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.folkflow-sound-map-modal__close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	background: transparent;
	border: 0;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: #444;
}

.folkflow-sound-map-modal__title {
	margin: 0 2rem 0.75rem 0;
	font-size: 1.25rem;
}

.folkflow-sound-map-modal__body {
	font-size: 1rem;
	line-height: 1.5;
}

.folkflow-sound-map-modal__body .folkflow-map-detail__video {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	margin: 1rem 0;
}

.folkflow-sound-map-modal__body .folkflow-map-detail__video iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
