.author-map-heading {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.author-map-heading h1 {
	margin-right: 0;
}

.author-map-mode {
	display: inline-flex;
	flex: 0 0 auto;
	margin-left: auto;
	overflow: hidden;
	border: solid 1px #bbb;
	border-radius: 3px;
	background: var(--theme-form-color);
	box-shadow: 0 1px 1px rgba(0, 0, 0, .1);
}

.author-map-mode button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 22px;
	padding: 0;
	border: 0;
	border-left: solid 1px #bbb;
	background: transparent;
	color: var(--theme-link-color);
}

.author-map-mode button:first-child {
	border-left: 0;
}

.author-map-mode button:hover,
.author-map-mode button:focus {
	outline: none;
	background: var(--theme-link-hover-bg-color);
}

.author-map-mode button.active {
	background: var(--theme-bg-color);
	color: var(--theme-fg-color);
}

.author-map-mode-ring {
	box-sizing: border-box;
	width: 10px;
	height: 10px;
	border: solid 2px currentColor;
	border-radius: 50%;
}

.author-map-mode-point {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}

#author-map {
	position: relative;
	margin: 0 -20px;
}

#author-map #map_canvas {
	width: 100%;
	height: calc(100vh - 190px);
	min-height: 500px;
	border-top: solid 1px #bbb;
	border-bottom: solid 1px #bbb;
}

#author-map #pfm_frame {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	padding-top: 10px;
	display: none;
	z-index: 1000;
	pointer-events: none;
}

#author-map #pfm_frame table {
	pointer-events: auto;
}

#author-map #pfm {
	max-width: 850px;
	padding: 10px;
	background: #eee;
	border: solid 1px #ccc;
	text-align: center;
}

@media screen and (min-width: 701px) {
	#author-map #map_canvas {
		min-height: 0;
	}

	.footer {
		display: none;
	}
}

@media screen and (max-width: 700px) {
	.author-map-heading {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 8px;
		margin: 0 3px;
	}

	.author-map-heading h1,
	.author-map-empty-title {
		min-width: 0;
		margin: 10px 0;
		font-size: clamp(22px, 6.5vw, 28px);
		line-height: 1.1;
		overflow-wrap: anywhere;
	}

	.author-map-mode {
		margin-left: 0;
	}

	.author-map-mode button {
		width: 32px;
		height: 26px;
	}

	.author-map-mode-ring {
		width: 9px;
		height: 9px;
		border-width: 2px;
	}

	.author-map-mode-point {
		width: 5px;
		height: 5px;
	}

	#author-map {
		margin: 0 -5px;
	}

	#author-map #map_canvas {
		height: calc(100vh - 138px);
		height: calc(100svh - 138px);
		min-height: 320px;
	}

	#author-map .leaflet-touch .leaflet-bar a {
		width: 30px;
		height: 30px;
		line-height: 30px;
		font-size: 18px;
	}

	#author-map .leaflet-touch .leaflet-control-layers-toggle {
		width: 32px;
		height: 32px;
		background-size: 20px 20px;
	}

	#author-map #pfm_frame {
		box-sizing: border-box;
		padding: 5px;
	}

	#author-map #pfm_frame table {
		width: 100%;
		table-layout: fixed;
	}

	#author-map #pfm {
		box-sizing: border-box;
		max-width: none;
		padding: 7px;
		overflow-x: auto;
		white-space: nowrap;
		-webkit-overflow-scrolling: touch;
	}

	#author-map #pfm .nw {
		display: block;
	}

	#author-map #pfm .prw-state-end {
		display: none;
	}

	#author-map #pfm .map-photo-link {
		display: block;
	}

	#author-map #pfm .map-photo-link-separator {
		display: none;
	}

	#author-map #pfm .xf {
		width: auto;
		padding: 2px;
	}
}
