/**
 * MK Recent Post Slider
 * Stijl van design-1: afbeelding als achtergrond, tekstblok linksonder.
 */

.mkrps-wrap {
	--mkrps-image-height: 350px;
	--mkrps-overlay: rgba(0, 0, 0, 0.5);
	--mkrps-accent: #e96656;
	--mkrps-arrow-bg: rgba(0, 0, 0, 0.7);
	--mkrps-dot: #fff;
	--mkrps-dot-border: #444;
	--mkrps-dot-active: #8d8c8c;

	position: relative;
	width: 100%;
	clear: both;
}

.mkrps-slider {
	position: relative;
}

.mkrps-slider a {
	text-decoration: none;
}

/* ---------- Viewport en track ---------- */

.mkrps-viewport {
	overflow: hidden;
	position: relative;
	width: 100%;
}

.mkrps-track {
	display: flex;
	flex-wrap: nowrap;
	width: 100%;
	margin: 0;
	padding: 0;
	will-change: transform;
}

.mkrps-slider.mkrps-rtl .mkrps-track {
	flex-direction: row-reverse;
}

.mkrps-slide {
	flex: 0 0 100%;
	max-width: 100%;
	min-width: 0;
	padding: 0;
	margin: 0;
	list-style: none;
}

.mkrps-slide-inner {
	position: relative;
}

/* ---------- Afbeelding ---------- */

.mkrps-image {
	background: #f1f1f1;
	height: var(--mkrps-image-height);
	line-height: 0;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.mkrps-image a {
	display: block;
	height: 100%;
	width: 100%;
}

.mkrps-image img {
	height: 100%;
	width: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
	margin: 0;
	max-width: none;
}

/* ---------- Tekstblok ---------- */

.mkrps-content {
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 5;
	width: 100%;
	box-sizing: border-box;
	padding: 20px 20px 40px 20px;
	background: var(--mkrps-overlay);
	color: #fff;
}

.mkrps-slider.mkrps-rtl .mkrps-content {
	left: auto;
	right: 0;
	direction: rtl;
	text-align: right;
}

.mkrps-content a,
.mkrps-content p {
	color: #fff;
}

.mkrps-title {
	margin: 5px 0;
	padding: 0;
	line-height: 1.2;
	font-size: 22px;
}

.mkrps-title a {
	color: #fff;
	font-size: inherit;
	line-height: inherit;
}

.mkrps-title a:hover,
.mkrps-title a:focus {
	text-decoration: underline;
}

.mkrps-meta {
	position: relative;
	margin: 0 0 14px 0;
	font-size: 13px;
}

.mkrps-meta::after {
	background: var(--mkrps-accent);
	bottom: -4px;
	content: "";
	height: 2px;
	left: 0;
	position: absolute;
	width: 50px;
}

.mkrps-slider.mkrps-rtl .mkrps-meta::after {
	left: auto;
	right: 0;
}

.mkrps-excerpt {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
}

.mkrps-readmore {
	display: inline-block;
	margin: 10px 0 0 0;
	padding: 4px 12px;
	border: 1px solid #e7e7e7;
	color: #fff;
	font-size: 12px;
	transition: background 0.3s ease-out, color 0.3s ease-out;
}

.mkrps-readmore:hover,
.mkrps-readmore:focus {
	color: #fff;
	background: rgba(0, 0, 0, 0.5);
}

/* ---------- Termen / categorieën ---------- */

.mkrps-term-list {
	margin: 0 0 10px 0;
	padding: 0;
	list-style: none;
}

.mkrps-term-list li {
	display: inline-block;
	margin: 2px;
	padding: 0;
}

.mkrps-term-list a {
	display: inline-block;
	padding: 3px 8px;
	font-size: 10px;
	color: #fff;
	text-transform: uppercase;
	transition: background 0.3s ease-out;
}

.mkrps-term-list li:nth-child(4n+1) a { background: #1abc9c; }
.mkrps-term-list li:nth-child(4n+2) a { background: #3498db; }
.mkrps-term-list li:nth-child(4n+3) a { background: #e74c3c; }
.mkrps-term-list li:nth-child(4n+4) a { background: #34495e; }

.mkrps-term-list a:hover,
.mkrps-term-list a:focus {
	background: #333;
	color: #fff;
}

/* ---------- Pijlen ---------- */

.mkrps-arrow {
	position: absolute;
	bottom: 0;
	z-index: 9;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 50px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: var(--mkrps-arrow-bg);
	color: #fff;
	cursor: pointer;
	box-shadow: none;
	transition: background 0.3s ease-out;
}

.mkrps-arrow:hover,
.mkrps-arrow:focus {
	background: #000;
	color: #fff;
}

.mkrps-arrow:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -4px;
}

.mkrps-arrow svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
	pointer-events: none;
}

.mkrps-arrow-next { right: 0; }
.mkrps-arrow-prev { right: 31px; }

.mkrps-slider.mkrps-rtl .mkrps-arrow-next { right: auto; left: 0; }
.mkrps-slider.mkrps-rtl .mkrps-arrow-prev { right: auto; left: 31px; }

/* ---------- Bolletjes ---------- */

.mkrps-dots {
	position: absolute;
	left: 15px;
	bottom: 4px;
	z-index: 9;
	margin: 0;
	padding: 0;
	list-style: none;
	line-height: 1;
}

.mkrps-slider.mkrps-rtl .mkrps-dots {
	left: auto;
	right: 15px;
}

.mkrps-dots li {
	display: inline-block;
	margin: 0 2px;
	padding: 0;
	list-style: none;
}

.mkrps-dots button {
	display: block;
	width: 13px;
	height: 13px;
	margin: 0;
	padding: 0;
	border: 2px solid var(--mkrps-dot-border);
	border-radius: 50%;
	background: var(--mkrps-dot);
	box-shadow: none;
	cursor: pointer;
	text-indent: -9999px;
	overflow: hidden;
	transition: background 0.3s ease-out;
}

.mkrps-dots button[aria-current="true"] {
	background: var(--mkrps-dot-active);
}

.mkrps-dots button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* ---------- Toegankelijkheid ---------- */

.mkrps-wrap .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Responsive ---------- */

@media only screen and (min-width: 641px) {
	.mkrps-content {
		width: 66.6667%;
	}
}

@media only screen and (max-width: 500px) {
	.mkrps-excerpt {
		display: none;
	}

	.mkrps-title {
		font-size: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mkrps-track {
		transition: none !important;
	}
}
