/* exakt Vlerkie front end. Colours follow vlerkie.co.za; override --vlerkie-* in Additional CSS. */
:root {
	--vlerkie-card-bg: #24312a;
	--vlerkie-text: #f8f4e9;
	--vlerkie-accent: #d9a441;
	--vlerkie-muted: #b7c2b4;
	--vlerkie-radius: 16px;
}

.vlerkie-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
	margin: 24px 0;
}

.vlerkie-card {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--vlerkie-radius);
	background: var(--vlerkie-card-bg);
	aspect-ratio: 4 / 5;
	text-decoration: none !important;
}

.vlerkie-card img,
.vlerkie-card .vlerkie-noimg {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.vlerkie-card:hover img {
	transform: scale(1.04);
}

.vlerkie-card-text {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	padding: 48px 14px 14px;
	background: linear-gradient(transparent, rgba(27, 36, 32, 0.92));
	color: var(--vlerkie-text);
}

.vlerkie-card-text strong {
	font-size: 1.05em;
	line-height: 1.25;
}

.vlerkie-card-text em {
	color: var(--vlerkie-accent);
	font-style: normal;
	font-size: 0.9em;
}

.vlerkie-card-text small {
	color: var(--vlerkie-muted);
}

.vlerkie-count {
	position: absolute;
	top: 10px;
	right: 10px;
	min-width: 28px;
	padding: 2px 9px;
	border-radius: 999px;
	background: rgba(27, 36, 32, 0.8);
	color: var(--vlerkie-text);
	font-size: 0.85em;
	text-align: center;
}

.vlerkie-afr {
	color: var(--vlerkie-accent);
	font-weight: 600;
}

.vlerkie-facts {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 6px 18px;
	margin: 16px 0;
}

.vlerkie-facts dt {
	opacity: 0.7;
}

.vlerkie-facts dd {
	margin: 0;
}

.vlerkie-features {
	margin: 12px 0 12px 1.2em;
}

@media (max-width: 480px) {
	.vlerkie-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
}

/* ---- 0.2.0: life lists, stats, places, map, hero, search ---- */

/* A card's display:block beats the hidden attribute, so the search filter needs this. */
.vlerkie-search [hidden],
.vlerkie-catalog [hidden] {
	display: none !important;
}

.vlerkie-search input {
	width: 100%;
	max-width: 520px;
	padding: 12px 16px;
	border: 1px solid rgba(183, 194, 180, 0.4);
	border-radius: 999px;
	background: var(--vlerkie-card-bg);
	color: var(--vlerkie-text);
	font-size: 1em;
}

.vlerkie-search-none {
	display: block;
	margin-top: 12px;
	color: var(--vlerkie-muted);
}

.vlerkie-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 12px;
	width: 100%;
}

.vlerkie-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 18px 12px;
	border-radius: var(--vlerkie-radius);
	background: var(--vlerkie-card-bg);
	text-align: center;
}

.vlerkie-stat strong {
	color: var(--vlerkie-accent);
	font-size: 2.2em;
	line-height: 1.1;
}

.vlerkie-stat span {
	color: var(--vlerkie-muted);
	font-size: 0.9em;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.vlerkie-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 12px;
}

.vlerkie-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border: 1px solid rgba(183, 194, 180, 0.35);
	border-radius: 999px;
	color: var(--vlerkie-text) !important;
	font-size: 0.92em;
	text-decoration: none !important;
}

.vlerkie-chip span {
	color: var(--vlerkie-muted);
}

.vlerkie-chip.is-active,
.vlerkie-chip:hover {
	border-color: var(--vlerkie-accent);
	background: var(--vlerkie-accent);
	color: #1b2420 !important;
}

.vlerkie-chip.is-active span,
.vlerkie-chip:hover span {
	color: #1b2420;
}

.vlerkie-chips-sort .vlerkie-chip {
	padding: 4px 12px;
	font-size: 0.85em;
}

.vlerkie-lifelist-total {
	margin: 12px 0;
	color: var(--vlerkie-muted);
}

.vlerkie-table-wrap {
	overflow-x: auto;
	border-radius: var(--vlerkie-radius);
	background: var(--vlerkie-card-bg);
}

.vlerkie-table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	color: var(--vlerkie-text);
}

.vlerkie-table th,
.vlerkie-table td {
	padding: 10px 14px;
	border: 0;
	border-bottom: 1px solid rgba(183, 194, 180, 0.15);
	text-align: start;
	vertical-align: top;
}

.vlerkie-table th {
	color: var(--vlerkie-muted);
	font-size: 0.8em;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.vlerkie-table a {
	color: var(--vlerkie-text);
	text-decoration: none;
}

.vlerkie-table a:hover {
	color: var(--vlerkie-accent);
}

.vlerkie-table .vlerkie-afr {
	display: block;
	font-size: 0.9em;
}

.vlerkie-lifelist-table td {
	vertical-align: middle;
}

.vlerkie-lifelist-bird {
	display: flex;
	align-items: center;
	gap: 12px;
}

.vlerkie-lifelist-thumb {
	flex: none;
	display: block;
	width: 56px;
	height: 56px;
	overflow: hidden;
	border-radius: 10px;
	background: rgba(183, 194, 180, 0.12);
}

.vlerkie-lifelist-thumb img,
.vlerkie-lifelist-thumb .vlerkie-noimg {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

@media (max-width: 480px) {
	.vlerkie-lifelist-thumb {
		width: 44px;
		height: 44px;
	}
}

.vlerkie-table .vlerkie-num {
	width: 1%;
	white-space: nowrap;
	text-align: end;
	color: var(--vlerkie-muted);
}

.vlerkie-pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
	color: var(--vlerkie-muted);
}

.vlerkie-places {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 16px;
	width: 100%;
}

.vlerkie-country {
	padding: 18px 20px;
	border-radius: var(--vlerkie-radius);
	background: var(--vlerkie-card-bg);
	color: var(--vlerkie-text);
}

.vlerkie-country header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 12px;
	margin-bottom: 10px;
}

.vlerkie-country h3 {
	margin: 0;
	color: var(--vlerkie-text);
	font-size: 1.25em;
}

.vlerkie-country header span {
	color: var(--vlerkie-accent);
}

.vlerkie-country header a {
	margin-inline-start: auto;
	color: var(--vlerkie-accent);
	font-size: 0.9em;
}

.vlerkie-country ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.vlerkie-country li {
	display: flex;
	flex-direction: column;
	padding: 8px 0;
	border-top: 1px solid rgba(183, 194, 180, 0.15);
}

.vlerkie-country li span {
	color: var(--vlerkie-muted);
	font-size: 0.88em;
}

.vlerkie-map {
	width: 100%;
	border-radius: var(--vlerkie-radius);
	overflow: hidden;
	background: var(--vlerkie-card-bg);
	z-index: 0;
}

.vlerkie-map-birds {
	margin: 6px 0 0 1em;
	padding: 0;
}

.vlerkie-hero {
	position: relative;
	width: 100%;
	margin: 0;
	overflow: hidden;
	border-radius: var(--vlerkie-radius);
	background: var(--vlerkie-card-bg);
}

.vlerkie-hero img {
	/* 0.4.6: the whole photo, never cropped. A portrait photo keeps its shape, capped to the
	   screen height, with the card colour either side; a landscape one fills the width. */
	display: block;
	width: 100%;
	height: auto;
	max-height: 78vh;
	object-fit: contain;
}

.vlerkie-hero figcaption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 56px 18px 16px;
	background: linear-gradient(transparent, rgba(27, 36, 32, 0.92));
	color: var(--vlerkie-text);
}

.vlerkie-hero figcaption a {
	color: var(--vlerkie-text);
	text-decoration: none;
	font-size: 1.15em;
}

.vlerkie-hero figcaption small {
	display: block;
	color: var(--vlerkie-muted);
}

/* ---- 0.6.0: the showcase slideshow ([vlerkie_hero] with photos flagged Showcase in the app) ----
   Slides are stacked and cross-fade. A fixed 3:2 frame keeps the page from jumping between a
   portrait and a landscape photo; each photo is shown whole inside it. */
.vlerkie-showcase .vlerkie-show-track {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 2;
	max-height: 78vh;
}

.vlerkie-showcase .vlerkie-slide {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}

.vlerkie-showcase .vlerkie-slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.9s ease, visibility 0s;
}

.vlerkie-showcase .vlerkie-slide > a {
	display: block;
	width: 100%;
	height: 100%;
}

.vlerkie-showcase .vlerkie-slide img {
	width: 100%;
	height: 100%;
	max-height: none;
	object-fit: contain;
}

.vlerkie-showcase figcaption {
	padding-bottom: 34px;
}

.vlerkie-show-nav,
.vlerkie-show-full {
	position: absolute;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(27, 36, 32, 0.55);
	color: var(--vlerkie-text);
	cursor: pointer;
	opacity: 0.85;
	transition: opacity 0.2s, background 0.2s;
}

.vlerkie-show-nav:hover,
.vlerkie-show-nav:focus-visible,
.vlerkie-show-full:hover,
.vlerkie-show-full:focus-visible {
	opacity: 1;
	background: rgba(27, 36, 32, 0.85);
	color: var(--vlerkie-accent);
}

.vlerkie-show-nav:focus-visible,
.vlerkie-show-full:focus-visible,
.vlerkie-show-dot:focus-visible {
	outline: 2px solid var(--vlerkie-accent);
	outline-offset: 2px;
}

.vlerkie-show-prev {
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
}

.vlerkie-show-next {
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
}

.vlerkie-show-full {
	top: 10px;
	right: 10px;
	width: 38px;
	height: 38px;
}

.vlerkie-show-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 10px;
	display: flex;
	justify-content: center;
	gap: 4px;
	pointer-events: none;
}

.vlerkie-show-dot {
	width: 22px;
	height: 22px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	pointer-events: auto;
}

.vlerkie-show-dot::before {
	content: "";
	display: block;
	width: 8px;
	height: 8px;
	margin: auto;
	border-radius: 50%;
	background: var(--vlerkie-text);
	opacity: 0.45;
	transition: opacity 0.2s, transform 0.2s;
}

.vlerkie-show-dot[aria-current="true"]::before {
	background: var(--vlerkie-accent);
	opacity: 1;
	transform: scale(1.25);
}

@media (max-width: 600px) {
	.vlerkie-showcase figcaption {
		padding: 28px 12px 28px;
		font-size: 0.85em;
	}

	.vlerkie-showcase figcaption small {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.vlerkie-show-nav {
		width: 34px;
		height: 34px;
	}
}

@media (hover: none) {
	.vlerkie-show-nav {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vlerkie-showcase .vlerkie-slide,
	.vlerkie-showcase .vlerkie-slide.is-active {
		transition: none;
	}
}

@media (max-width: 600px) {
	.vlerkie-table th:nth-child(5),
	.vlerkie-table td:nth-child(5) {
		display: none;
	}

	.vlerkie-table th,
	.vlerkie-table td {
		padding: 8px 10px;
	}
}

/* ---- 0.3.0: search results page ---- */
.vlerkie-page,
.vlerkie-search-page {
	width: 100%;
	padding: 40px 16px 64px;
	background: var(--vlerkie-page-bg, #1b2420);
	color: var(--vlerkie-text);
}

.vlerkie-page-inner,
.vlerkie-search-inner {
	max-width: 1180px;
	margin: 0 auto;
}

.vlerkie-kicker {
	margin: 0 0 8px;
	color: #7fa65b;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 3px;
	text-transform: uppercase;
}

.vlerkie-page h1,
.vlerkie-search-page h1 {
	margin: 0 0 20px;
	color: var(--vlerkie-text);
	font-size: clamp(28px, 4vw, 40px);
	line-height: 1.2;
}

.vlerkie-page h1 span,
.vlerkie-search-page h1 span {
	color: var(--vlerkie-accent);
}

.vlerkie-page h2,
.vlerkie-search-page h2 {
	margin: 36px 0 0;
	color: var(--vlerkie-text);
	font-size: 24px;
}

.vlerkie-searchform {
	display: flex;
	width: 100%;
	max-width: 640px;
	margin: 0;
}

.vlerkie-searchform input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 13px 18px;
	border: 1px solid rgba(183, 194, 180, 0.4);
	border-right: 0;
	border-radius: 999px 0 0 999px;
	background: var(--vlerkie-card-bg);
	color: var(--vlerkie-text);
	font-size: 16px;
}

.vlerkie-searchform button {
	padding: 0 22px;
	border: 0;
	border-radius: 0 999px 999px 0;
	background: var(--vlerkie-accent);
	color: #1b2420;
	font-weight: 600;
	cursor: pointer;
}

.vlerkie-search-hint {
	margin: 12px 0 0;
	color: var(--vlerkie-muted);
	font-size: 0.92em;
}

.vlerkie-search-page .vlerkie-empty {
	margin-top: 28px;
	color: var(--vlerkie-text);
}

.vlerkie-page .vlerkie-species > p {
	margin: 0 0 6px;
	color: var(--vlerkie-muted);
}

.vlerkie-page .vlerkie-species .vlerkie-afr {
	color: var(--vlerkie-accent);
	font-size: 1.2em;
}

.vlerkie-page .vlerkie-facts {
	color: var(--vlerkie-text);
}

.vlerkie-page-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

/* ---- 0.4.0: birds by group ---- */
.vlerkie-catalog-wrap [hidden] {
	display: none !important;
}

.vlerkie-group {
	margin-top: 28px;
}

.vlerkie-group h3 {
	margin: 0 0 4px;
	color: var(--vlerkie-text);
	font-size: 1.3em;
}

.vlerkie-group h3 span {
	margin-left: 8px;
	color: var(--vlerkie-muted);
	font-size: 0.7em;
	font-weight: 400;
}

.vlerkie-group .vlerkie-grid {
	margin-top: 12px;
}

/* ---- 0.4.5: full-screen photo viewer, Location row ---- */
.vlerkie-grid-tools {
	display: flex;
	justify-content: flex-end;
	margin: 20px 0 -8px;
}

.vlerkie-sighting .vlerkie-grid-tools {
	justify-content: flex-start;
	margin: 0 0 12px;
}

button.vlerkie-fullscreen-btn {
	background: transparent;
	font: inherit;
	line-height: 1.2;
	cursor: pointer;
}

.vlerkie-fullscreen-btn svg {
	flex: none;
}

.vlerkie-fullscreen-btn:focus-visible,
.vlerkie-viewer a:focus-visible,
.vlerkie-viewer button:focus-visible {
	outline: 2px solid var(--vlerkie-accent);
	outline-offset: 2px;
}

html.vlerkie-viewer-open,
html.vlerkie-viewer-open body {
	overflow: hidden !important;
}

.vlerkie-viewer {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	overflow: hidden;
	background: #000;
	color: #fff;
	overscroll-behavior: contain;
	-webkit-user-select: none;
	user-select: none;
}

.vlerkie-viewer[hidden],
.vlerkie-viewer [hidden] {
	display: none !important;
}

.vlerkie-viewer::backdrop {
	background: #000;
}

.vlerkie-viewer-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: contain;
}

.vlerkie-viewer.is-loading .vlerkie-viewer-img {
	opacity: 0.4;
}

.vlerkie-viewer-status {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	margin: 0;
	padding: 0 24px;
	color: #ddd;
	text-align: center;
	transform: translateY(-50%);
}

/* The bird's name, bottom left over the photo: a soft shade keeps it readable on any photo. */
.vlerkie-viewer-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 96px max(24px, env(safe-area-inset-left)) max(22px, env(safe-area-inset-bottom));
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.62));
	pointer-events: none;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.vlerkie-viewer-caption strong {
	font-size: clamp(22px, 3.2vw, 36px);
	font-weight: 600;
	line-height: 1.15;
}

.vlerkie-viewer-caption span {
	color: var(--vlerkie-accent);
	font-size: clamp(15px, 1.8vw, 20px);
}

.vlerkie-viewer-top {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 40px 16px;
	background: linear-gradient(rgba(0, 0, 0, 0.5), transparent);
}

.vlerkie-viewer-count {
	margin-right: auto;
	font-size: 15px;
	font-variant-numeric: tabular-nums;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.vlerkie-viewer-details,
.vlerkie-viewer button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: rgba(0, 0, 0, 0.45);
	color: #fff !important;
	cursor: pointer;
}

.vlerkie-viewer-details {
	height: 44px;
	padding: 0 16px;
	border-radius: 999px;
	font-size: 15px;
	text-decoration: none !important;
}

.vlerkie-viewer button {
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border-radius: 50%;
}

.vlerkie-viewer-details:hover,
.vlerkie-viewer button:hover:not(:disabled) {
	border-color: var(--vlerkie-accent);
	background: rgba(0, 0, 0, 0.7);
}

.vlerkie-viewer .vlerkie-viewer-prev,
.vlerkie-viewer .vlerkie-viewer-next {
	position: absolute;
	top: 50%;
	width: 52px;
	height: 52px;
	transform: translateY(-50%);
}

.vlerkie-viewer-prev {
	left: max(12px, env(safe-area-inset-left));
}

.vlerkie-viewer-next {
	right: max(12px, env(safe-area-inset-right));
}

.vlerkie-viewer button:disabled {
	opacity: 0.25;
	cursor: default;
}

@media (max-width: 600px) {
	.vlerkie-viewer .vlerkie-viewer-prev,
	.vlerkie-viewer .vlerkie-viewer-next {
		width: 42px;
		height: 42px;
	}

	.vlerkie-viewer-caption {
		padding-right: 72px;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.vlerkie-viewer-img {
		transition: opacity 0.2s ease;
	}
}

/* ---- 0.4.7: the whole photo on a photo page ---- */
.single-vlerkie_sighting .exakt-post-thumbnail {
	overflow: hidden;
	border-radius: var(--vlerkie-radius);
	background: var(--vlerkie-card-bg);
}

.single-vlerkie_sighting .exakt-post-thumbnail img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 85vh;
	object-fit: contain;
	border-radius: 0;
}

/* 0.4.9: the place, and the GPS position when it is shown, on cards and in the viewer. */
.vlerkie-card-where {
	display: flex;
	gap: 4px;
	align-items: flex-start;
	line-height: 1.3;
}

.vlerkie-card-where svg {
	flex: none;
	margin-top: 2px;
	color: var(--vlerkie-accent);
}

.vlerkie-gps {
	display: block;
	font-variant-numeric: tabular-nums;
	opacity: 0.85;
}

.vlerkie-viewer-where {
	margin-top: 4px;
	font-size: 0.9em;
	opacity: 0.85;
}

/* 0.10.1: the day the photo was taken, and Play / Pause in the viewer's top bar. */
.vlerkie-viewer-date {
	margin-top: 4px;
	font-size: 0.95em;
	font-variant-numeric: tabular-nums;
}

.vlerkie-viewer .vlerkie-viewer-play .vlerkie-icon-pause,
.vlerkie-viewer.is-playing .vlerkie-viewer-play .vlerkie-icon-play {
	display: none;
}

.vlerkie-viewer.is-playing .vlerkie-viewer-play .vlerkie-icon-pause {
	display: block;
}

.vlerkie-viewer.is-playing .vlerkie-viewer-play {
	border-color: var(--vlerkie-accent);
	color: var(--vlerkie-accent) !important;
}

.vlerkie-viewer [hidden] {
	display: none !important;
}
/* 0.5.0: a place over the years. The picker (Home, Places, /sightings/) and the place page. */
.vlerkie-place-picker {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	max-width: 640px;
	margin: 0 0 20px;
	color: var(--vlerkie-text);
}

.vlerkie-place-picker label {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--vlerkie-muted);
	font-size: 0.95em;
}

.vlerkie-place-picker label svg {
	color: var(--vlerkie-accent);
}

.vlerkie-place-picker-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.vlerkie-place-picker select {
	flex: 1 1 260px;
	min-width: 0;
	padding: 10px 14px;
	border: 1px solid rgba(183, 194, 180, 0.35);
	border-radius: 12px;
	background: var(--vlerkie-card-bg);
	color: var(--vlerkie-text);
	font: inherit;
}

.vlerkie-place-picker button {
	background: transparent;
	cursor: pointer;
	font: inherit;
}

.vlerkie-place-summary {
	margin: 0 0 16px;
	color: var(--vlerkie-accent);
	font-size: 1.05em;
}

.vlerkie-year {
	width: 100%;
	margin-top: 28px;
}

.vlerkie-year header {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 12px;
}

.vlerkie-year h2 {
	margin: 0;
	color: var(--vlerkie-text);
	font-size: 1.6em;
}

.vlerkie-year header span {
	color: var(--vlerkie-muted);
}

.vlerkie-country li a,
.vlerkie-facts dd a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--vlerkie-accent);
	text-underline-offset: 3px;
}
/* 0.6.1: one bird within a place or the showcase: links back and to all of the bird's photos. */
.vlerkie-back {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 8px 0 4px;
}

/* 0.7.0: places as photo cards, grouped per country, with a card for the whole country. */
.vlerkie-places-cards {
	display: block;
}

.vlerkie-places-cards .vlerkie-country {
	margin-bottom: 20px;
}

.vlerkie-places-cards .vlerkie-grid {
	margin: 8px 0 0;
}

.vlerkie-place-cards {
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.vlerkie-place-card {
	aspect-ratio: 4 / 3;
}

.vlerkie-place-card .vlerkie-card-text strong {
	display: flex;
	align-items: baseline;
	gap: 5px;
}

.vlerkie-place-card .vlerkie-card-text strong svg {
	flex: none;
	color: var(--vlerkie-accent);
}

.vlerkie-country-card {
	box-shadow: inset 0 0 0 2px var(--vlerkie-accent);
}

.vlerkie-country-card img {
	opacity: 0.9;
}

.vlerkie-back .vlerkie-chip svg {
	vertical-align: -1px;
}

@media (max-width: 480px) {
	.vlerkie-place-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.vlerkie-place-card {
		aspect-ratio: 4 / 5;
	}

	.vlerkie-place-card .vlerkie-card-text {
		padding: 36px 10px 10px;
		font-size: 0.88em;
	}
}

/* ---- 0.8.0: a bird's gallery (bird pages) ----
   Like the Photos app: one large photo in a fixed 3:2 frame (shown whole, never cropped), a bar
   with the counter, Play/Pause and Full screen, then a strip of small photos that scrolls
   sideways with the one being shown in the middle. */
.vlerkie-gallery {
	margin: 24px 0;
}

.vlerkie-gallery-stage {
	position: relative;
	overflow: hidden;
	border-radius: var(--vlerkie-radius);
	background: var(--vlerkie-card-bg);
	aspect-ratio: 3 / 2;
	max-height: 78vh;
	width: 100%;
}

.vlerkie-gallery-photo {
	display: block;
	width: 100%;
	height: 100%;
}

.vlerkie-gallery-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: opacity 0.2s ease;
}

.vlerkie-gallery-photo img.is-in {
	animation: vlerkie-gallery-in 0.45s ease;
}

@keyframes vlerkie-gallery-in {
	from {
		opacity: 0.25;
	}
	to {
		opacity: 1;
	}
}

.vlerkie-gallery.is-loading .vlerkie-gallery-photo img {
	opacity: 0.6;
}

.vlerkie-gallery-bar {
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.vlerkie-gallery-count {
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(27, 36, 32, 0.55);
	color: var(--vlerkie-text);
	font-size: 0.85em;
	font-variant-numeric: tabular-nums;
}

.vlerkie-gallery-play,
.vlerkie-gallery-full {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(27, 36, 32, 0.55);
	color: var(--vlerkie-text);
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.vlerkie-gallery-play:hover,
.vlerkie-gallery-play:focus-visible,
.vlerkie-gallery-full:hover,
.vlerkie-gallery-full:focus-visible {
	background: rgba(27, 36, 32, 0.85);
	color: var(--vlerkie-accent);
}

.vlerkie-gallery-play:focus-visible,
.vlerkie-gallery-full:focus-visible,
.vlerkie-gallery-thumb:focus-visible {
	outline: 2px solid var(--vlerkie-accent);
	outline-offset: 2px;
}

.vlerkie-gallery-play .vlerkie-icon-pause,
.vlerkie-gallery.is-playing .vlerkie-gallery-play .vlerkie-icon-play {
	display: none;
}

.vlerkie-gallery.is-playing .vlerkie-gallery-play .vlerkie-icon-pause {
	display: block;
}

.vlerkie-gallery.is-playing .vlerkie-gallery-play {
	color: var(--vlerkie-accent);
}

/* Play, the arrows and the strip need JavaScript; without it the photos are plain links. */
.vlerkie-gallery:not(.is-ready) .vlerkie-gallery-play,
.vlerkie-gallery:not(.is-ready) .vlerkie-show-nav {
	display: none;
}

.vlerkie-gallery-caption {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 16px;
	margin: 10px 2px 0;
	color: var(--vlerkie-muted);
	font-size: 0.92em;
}

.vlerkie-gallery-details {
	color: var(--vlerkie-accent) !important;
}

.vlerkie-gallery-strip {
	position: relative; /* the thumbnails' offsetLeft is measured from the strip */
	display: flex;
	gap: 6px;
	margin-top: 12px;
	padding: 4px 2px 8px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
	scrollbar-color: var(--vlerkie-card-bg) transparent;
	-webkit-overflow-scrolling: touch;
}

.vlerkie-gallery-thumb {
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	overflow: hidden;
	border-radius: 8px;
	background: var(--vlerkie-card-bg);
	opacity: 0.55;
	scroll-snap-align: center;
	transition: opacity 0.2s, transform 0.2s;
}

.vlerkie-gallery-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vlerkie-gallery-thumb:hover {
	opacity: 0.85;
}

.vlerkie-gallery-thumb[aria-current="true"] {
	opacity: 1;
	box-shadow: 0 0 0 2px var(--vlerkie-accent);
	transform: scale(1.06);
}

@media (max-width: 600px) {
	.vlerkie-gallery-stage {
		aspect-ratio: 4 / 3;
		border-radius: 12px;
	}

	.vlerkie-gallery-thumb {
		width: 52px;
		height: 52px;
	}

	.vlerkie-gallery .vlerkie-show-nav {
		width: 36px;
		height: 36px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vlerkie-gallery-photo img.is-in {
		animation: none;
	}

	.vlerkie-gallery-thumb {
		transition: none;
	}
}

/* 0.8.0: the Birds page's All birds / By bird group switch sits under the list and order chips. */
.vlerkie-catalog-wrap .vlerkie-stats {
	margin-bottom: 16px;
}

/* 0.10.3: slideshow speed (- 4 s +), shown while it plays, in the viewer and on a bird's page. */
.vlerkie-speed {
	display: none;
	align-items: center;
	gap: 2px;
	border-radius: 999px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.vlerkie-viewer.is-playing .vlerkie-speed,
.vlerkie-gallery.is-playing .vlerkie-speed {
	display: inline-flex;
}

.vlerkie-speed button {
	width: 32px;
	height: 32px;
	padding: 0;
	border-radius: 50%;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.vlerkie-speed button:disabled {
	opacity: 0.35;
	cursor: default;
}

.vlerkie-speed-value {
	min-width: 3em;
	text-align: center;
	font-size: 15px;
}

.vlerkie-viewer-speed .vlerkie-speed-value {
	color: #fff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.vlerkie-gallery-speed {
	background: rgba(27, 36, 32, 0.55);
	color: var(--vlerkie-text);
}

.vlerkie-gallery-speed button {
	border: 0;
	background: transparent;
	color: var(--vlerkie-text);
}

.vlerkie-gallery-speed button:hover:not(:disabled),
.vlerkie-gallery-speed button:focus-visible {
	color: var(--vlerkie-accent);
}

.vlerkie-viewer-count {
	white-space: nowrap;
}

/* On a phone the speed needs the room: Details keeps its icon only while playing. */
@media (max-width: 480px) {
	.vlerkie-viewer.is-playing .vlerkie-viewer-details span {
		display: none;
	}
}

/* 0.10.4: the bird group above the name when Full screen was opened from By bird group. */
.vlerkie-viewer-group {
	color: var(--vlerkie-accent);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* 0.10.7: the map's Full screen. Fixed over the window too, for browsers without full screen. */
.vlerkie-map.is-fullscreen {
	position: fixed !important;
	inset: 0;
	z-index: 100000;
	width: 100vw;
	height: 100vh !important;
	height: 100dvh !important;
	border-radius: 0;
}

html.vlerkie-map-open,
html.vlerkie-map-open body {
	overflow: hidden;
}

.vlerkie-map-fs a {
	display: flex !important;
	align-items: center;
	justify-content: center;
	color: #1b2420 !important;
}
