/* Gallery page tiles: an even grid, with text matching the rest of the site */
.entry-content .ngg-albumoverview {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 12px;
}

.entry-content .ngg-album-compact {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 0 12px !important;
	box-sizing: border-box;
}

.entry-content .ngg-album-compactbox {
	width: 100% !important;
	height: auto !important;
	margin: 0 0 10px !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
}

.entry-content .ngg-album-compactbox a,
.entry-content .ngg-album-compactbox img {
	display: block;
	width: 100% !important;
	max-width: none !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.entry-content .ngg-album-compact h4 {
	margin: 0 12px 4px !important;
	text-align: left;
}

.entry-content .ngg-album-compact h4 .ngg-album-desc {
	overflow: visible;
	font-size: 17px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	letter-spacing: normal !important;
	text-align: left !important;
	text-decoration: none !important;
}

.entry-content .ngg-album-compact h4 .ngg-album-desc:hover,
.entry-content .ngg-album-compact h4 .ngg-album-desc:focus {
	text-decoration: underline !important;
}

.entry-content .ngg-album-compact .ngg-album-gallery-image-counter {
	margin: auto 12px 0 !important;
	color: #595959 !important;
	font-size: 14px !important;
	line-height: 1.4 !important;
	text-align: left !important;
}

.entry-content .ngg-album-compact .ngg-album-gallery-image-counter * {
	color: inherit !important;
	font-size: inherit !important;
	font-weight: 400 !important;
}

.entry-content .ngg-navigation {
	grid-column: 1 / -1;
}

/* Site standard for every list: home, archives, search, Gallery, Links and Routes */
@media screen and (min-width: 641px) {
	h1.title-header {
		font-size: 36px;
		font-weight: 600;
		line-height: 1.2;
	}
}

.rkb-result-count,
.entry-content .lb-count {
	color: #595959 !important;
	font-size: 14px !important;
}

/* Section headings */
.entry-content .cmlm-header {
	color: #333 !important;
	font-size: 24px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
}

/* Item titles */
.entry-content .cmlm-link.wb-bw {
	font-size: 22px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	text-decoration: none !important;
}

.entry-content .cmlm-link.wb-bw:hover,
.entry-content .cmlm-link.wb-bw:focus {
	text-decoration: underline !important;
}

.entry-content .cmlm-link.wb-bw .cmlm-tag {
	font-size: 12px !important;
	font-weight: 400 !important;
	text-decoration: none !important;
	vertical-align: middle;
}

/* Item details */
.entry-content .cmlm-link-subtitle {
	color: #595959 !important;
	font-size: 14px !important;
	font-style: normal !important;
	line-height: 1.4 !important;
}

.entry-content .cmlm-category-link-list-entry {
	border-bottom: 1px solid #eee !important;
}

.entry-content .cmlm-link-image {
	border-radius: 0 !important;
}

/* Gallery tiles: flat like the other lists, with no boxes */
.entry-content .ngg-albumoverview {
	gap: 24px !important;
}

.entry-content .ngg-album-compact {
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
}

.entry-content .ngg-album-compact h4 {
	margin: 0 0 4px !important;
}

.entry-content .ngg-album-compact h4 .ngg-album-desc {
	font-size: 22px !important;
}

.entry-content .ngg-album-compact .ngg-album-gallery-image-counter {
	margin: 0 !important;
}

/* Page buttons */
.entry-content .ngg-navigation a {
	font-size: 18px !important;
	font-weight: 400 !important;
}

.entry-content .ngg-navigation .current {
	font-size: 18px !important;
	font-weight: 600 !important;
}

.entry-content .ngg-navigation a.prev,
.entry-content .ngg-navigation a.next {
	font-size: 0 !important;
}

.entry-content .ngg-navigation a.prev::after,
.entry-content .ngg-navigation a.next::after {
	font-size: 18px;
	font-weight: 400;
}

.entry-content .ngg-albumoverview {
	margin: 0 !important;
	padding: 0 !important;
}

/* Search boxes and filter buttons use the site's font */
input,
button,
select,
textarea {
	font-family: inherit;
}

/* Last matches: tag and date headings, home page buttons, Links details */
@media screen and (min-width: 641px) {
	#content h1.title-header {
		font-size: 36px !important;
		font-weight: 600 !important;
		line-height: 1.2 !important;
	}
}

.rkb-pages .page-numbers {
	font-size: 18px !important;
}

body .entry-content span.cmlm-link-subtitle {
	color: #595959 !important;
}

/* Richard's choice: boxed Gallery tiles, and one title size that stays on one line */
.entry-content .ngg-albumoverview {
	gap: 12px !important;
}

.entry-content .ngg-album-compact {
	padding: 10px 10px 12px !important;
	border: 1px solid rgba(150, 150, 150, 0.3) !important;
	background: #fff !important;
	box-shadow: 0 0 4px rgba(150, 150, 150, 0.1) !important;
}

.entry-content .ngg-album-compact .ngg-album-gallery-image-counter {
	margin: auto 0 0 !important;
}

.entry-content .ngg-album-compact h4 .ngg-album-desc,
.entry-content .cmlm-link.wb-bw,
.rkb-ride__title {
	font-size: 16px !important;
	line-height: 22px !important;
}
