.rkb-rides-heading {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.3;
	color: #333;
}

.rkb-result-count {
	margin: 0;
	color: #595959;
}

.rkb-rides {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rkb-ride {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
	margin: 0;
	padding: 24px 0;
	border-bottom: 1px solid #eee;
}

.rkb-ride--no-image {
	grid-template-columns: minmax(0, 1fr);
}

.rkb-ride__image {
	display: block;
}

.rkb-ride__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.rkb-ride__title {
	margin: 0 0 4px;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
}

.rkb-ride__title a {
	text-decoration: none;
}

.rkb-ride__title a:hover,
.rkb-ride__title a:focus {
	text-decoration: underline;
}

.rkb-ride__date {
	margin: 0 0 8px;
	font-size: 14px;
	color: #595959;
}

.rkb-ride__excerpt {
	margin: 0;
}

.rkb-pages {
	margin-top: 32px;
}

.rkb-pages .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

.rkb-pages .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.rkb-pages .page-numbers {
	display: inline-block;
	min-width: 44px;
	padding: 10px 12px;
	box-sizing: border-box;
	border: 1px solid #d5d9dd;
	font-size: 16px;
	line-height: 22px;
	text-align: center;
	text-decoration: none;
}

.rkb-pages a.page-numbers:hover,
.rkb-pages a.page-numbers:focus {
	border-color: #0a5794;
	text-decoration: underline;
}

.rkb-pages .page-numbers.current {
	border-color: #0a5794;
	background: #0a5794;
	color: #fff;
	font-weight: 600;
}

.rkb-pages .page-numbers.dots {
	min-width: 0;
	padding: 10px 2px;
	border: 0;
}

@media screen and (max-width: 640px) {
	.rkb-ride {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}
}

/* Gallery page: NextGEN compact album */
.entry-content .ngg-albumoverview {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: stretch !important;
}

.entry-content .ngg-albumoverview .ngg-clear {
	display: none;
}

.entry-content .ngg-album-compact {
	display: flex !important;
	flex-direction: column !important;
	float: none !important;
	height: auto;
}

.entry-content .ngg-album-compact h4 {
	height: auto;
	margin: 12px 0 8px;
}

.entry-content .ngg-album-compact h4 .ngg-album-desc {
	height: auto !important;
	min-height: 0 !important;
	max-width: none;
}

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

.entry-content .ngg-navigation {
	display: flex !important;
	flex: 0 0 100%;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-start !important;
	align-items: center;
	width: 100%;
	height: auto;
	margin: 32px 0 0;
	padding: 0;
	text-align: left !important;
}

.entry-content .ngg-navigation a,
.entry-content .ngg-navigation .current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	float: none;
	box-sizing: border-box;
	min-width: 44px;
	height: 44px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid #d5d9dd;
	border-radius: 0;
	background: transparent;
	color: #0a5794;
	font-size: 16px;
	line-height: 22px;
	text-align: center;
	text-decoration: none;
}

.entry-content .ngg-navigation a:hover,
.entry-content .ngg-navigation a:focus {
	border-color: #0a5794;
	background: transparent;
	color: #0a5794;
	text-decoration: underline;
}

.entry-content .ngg-navigation .current {
	border-color: #0a5794;
	background: #0a5794;
	color: #fff;
	font-weight: 600;
}

.entry-content .ngg-navigation .ellipsis {
	float: none;
	margin: 0;
	padding: 10px 2px;
	border: 0;
	background: transparent;
	color: #333;
	font-size: 16px;
}

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

.entry-content .ngg-navigation a.prev::after {
	content: "Older \2192";
	font-size: 16px;
}

.entry-content .ngg-navigation a.next::after {
	content: "\2190  Newer";
	font-size: 16px;
}

/* NextGEN shortens long titles with a script; show them in full */
.entry-content .ngg-album-desc .js-shave {
	display: inline !important;
}

.entry-content .ngg-album-desc .js-shave-char {
	display: none !important;
}
