/* The mapsemble/map block in the editor canvas. */

/* The placeholder lays its children out in a wrapping row; the still and
   the picker each want the whole width. */
.wp-block-mapsemble-map .mapsemble-map-preview,
.wp-block-mapsemble-map .mapsemble-map-picker {
	flex-basis: 100%;
	width: 100%;
}

.wp-block-mapsemble-map .mapsemble-map-preview {
	max-width: 100%;
	height: auto;
	display: block;
	margin-bottom: 1em;
}

/* Breathing room under the radios before what they reveal. */
.mapsemble-which-map {
	margin-bottom: 1em;
}

/* A chosen map, live: the frame fills a box of the block's width and the
   height set inline (a real length — vh inside the frame means the frame). */
.wp-block-mapsemble-map .mapsemble-live-preview {
	position: relative;
	width: 100%;
}

.wp-block-mapsemble-map .mapsemble-live-preview iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* Over the frame until the block is selected, so a click selects the block
   rather than vanishing into the map. */
.wp-block-mapsemble-map .mapsemble-live-preview__overlay {
	position: absolute;
	inset: 0;
}

/* The picker "Change map" reveals, under the preview. */
.wp-block-mapsemble-map .mapsemble-change-map {
	padding: 12px 0;
}
