/*
 * Antarnisti Related Posts Slider
 * Built for Baskerville on antarnisti.com
 */

.ars-related-posts {
	margin: 3.2em 0 0;
	padding: 44px 0 4px;
	border-top: 1px solid #eee;
	background: #fff;
	color: #444;
	font-family: 'Roboto', 'Segoe UI', sans-serif;
	font-size: 18px;
	font-style: normal;
	font-weight: normal;
	line-height: 1.5;
	text-shadow: none;
}

.ars-related-posts *,
.ars-related-posts *::before,
.ars-related-posts *::after {
	text-shadow: none;
}

.ars-related-posts-title {
	margin: 0 0 28px;
	font-family: 'Roboto Slab', 'Segoe UI', serif;
	font-size: 1.05em;
	font-weight: 700;
	letter-spacing: 4px;
	text-transform: uppercase;
	text-align: center;
	color: #222;
}

.ars-related-posts-scroller {
	overflow-x: auto;
	overflow-y: hidden;
	padding: 0 0 16px;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}

.ars-related-posts-scroller:focus {
	outline: 2px solid rgba(19, 196, 165, 0.35);
	outline-offset: 6px;
}

.ars-related-posts-scroller::-webkit-scrollbar {
	height: 8px;
}

.ars-related-posts-scroller::-webkit-scrollbar-track {
	background: #eee;
	border-radius: 999px;
}

.ars-related-posts-scroller::-webkit-scrollbar-thumb {
	background: #13C4A5;
	border-radius: 999px;
}

.ars-related-posts-list {
	display: flex;
	gap: 28px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.post-content .ars-related-posts-list {
	margin-left: 0 !important;
}

.ars-related-post-card {
	flex: 0 0 calc((100% - 56px) / 3);
	min-width: calc((100% - 56px) / 3);
	margin: 0 !important;
	padding: 0 !important;
	background: #f6f8f8;
	border-top: 4px solid #13C4A5;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
	overflow: hidden;
	scroll-snap-align: start;
}

.ars-related-post-card::before {
	content: none !important;
}

.ars-related-post-thumbnail {
	display: block;
	width: 100%;
	height: 150px;
	overflow: hidden;
	background: #eee;
	text-decoration: none !important;
}

.ars-related-post-thumbnail img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.ars-related-post-thumbnail:hover img {
	transform: scale(1.06);
	opacity: 0.9;
}

.ars-related-post-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: #2B3542;
	color: #fff;
	font-family: 'Roboto Slab', 'Segoe UI', serif;
	font-size: 3rem;
	font-weight: 700;
	text-transform: uppercase;
}

.ars-related-post-heading {
	margin: 0 !important;
	color: #2B3542 !important;
	font-style: normal !important;
	text-shadow: none !important;
	padding: 22px 20px 8px;
	font-family: 'Roboto Slab', 'Segoe UI', serif;
	font-size: 0.95em !important;
	font-weight: 700;
	line-height: 1.45 !important;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.ars-related-post-heading a {
	color: #2B3542;
	text-align: center;
	text-decoration: none !important;
}

.ars-related-post-heading a:hover {
	color: #13C4A5;
	text-decoration: none !important;
}

.ars-related-post-date {
	margin: 0 !important;
	font-family: 'Roboto', 'Segoe UI', sans-serif !important;
	font-style: normal !important;
	text-shadow: none !important;
	padding: 0 20px 24px;
	text-align: center;
	line-height: 1.4 !important;
}

.ars-related-post-date a {
	color: #13C4A5;
	font-family: 'Roboto', 'Segoe UI', sans-serif !important;
	font-style: normal !important;
	text-shadow: none !important;
	font-size: 0.75em;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none !important;
}

.ars-related-post-date a:hover {
	color: #2B3542;
	text-decoration: none !important;
}

@media (max-width: 900px) {
	.ars-related-post-card {
		flex-basis: calc((100% - 28px) / 2);
		min-width: calc((100% - 28px) / 2);
	}
}

@media (max-width: 600px) {
	.ars-related-posts {
		margin-top: 2.4em;
		padding-top: 34px;
	}

	.ars-related-posts-title {
		font-size: 0.95em;
		letter-spacing: 2px;
	}

	.ars-related-posts-list {
		gap: 20px;
	}

	.ars-related-post-card {
		flex-basis: 82%;
		min-width: 82%;
	}

	.ars-related-post-thumbnail {
		height: 180px;
	}
}
