/**
 * Lifehacker-inspired editorial carousel between author and comments.
 */

body.single-post .journal-interesting {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 34px 26px 38px;
	border-top: 1px solid #dedede;
	border-bottom: 1px solid #dedede;
	background: #fff;
}

body.single-post .journal-interesting__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin: 0 0 24px;
}

body.single-post .journal-interesting__title {
	margin: 0 !important;
	padding: 0 !important;
	color: #111 !important;
	font-size: 32px !important;
	font-weight: 800 !important;
	line-height: 1.12 !important;
	letter-spacing: -.035em !important;
}

body.single-post .journal-interesting__navigation {
	display: flex;
	align-items: center;
	gap: 8px;
}

body.single-post .journal-interesting__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin: 0;
	padding: 0;
	border: 1px solid #d8d8d8;
	border-radius: 50%;
	background: #fff;
	color: #171717;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: color .18s ease, border-color .18s ease, background .18s ease;
}

body.single-post .journal-interesting__button:hover {
	border-color: var(--js-accent, #ef5b40);
	background: var(--js-accent, #ef5b40);
	color: #fff;
}

body.single-post .journal-interesting__button:disabled {
	opacity: .3;
	cursor: default;
}

body.single-post .journal-interesting__track {
	display: flex;
	align-items: stretch;
	gap: 16px;
	width: 100%;
	margin: 0;
	padding: 0 0 4px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

body.single-post .journal-interesting__track::-webkit-scrollbar {
	display: none;
}

body.single-post .journal-interesting__card {
	position: relative;
	flex: 0 0 calc((100% - 48px) / 4);
	min-width: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 8px;
	background: #292929;
	aspect-ratio: 3 / 4;
	scroll-snap-align: start;
}

body.single-post .journal-interesting__link,
body.single-post .journal-interesting__image,
body.single-post .journal-interesting__image img,
body.single-post .journal-interesting__shade {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

body.single-post .journal-interesting__link {
	color: #fff !important;
	text-decoration: none !important;
}

body.single-post .journal-interesting__image img {
	object-fit: cover;
	transition: transform .3s ease;
}

body.single-post .journal-interesting__shade {
	z-index: 1;
	background: linear-gradient(180deg, rgba(0, 0, 0, .02) 26%, rgba(0, 0, 0, .84) 100%);
}

body.single-post .journal-interesting__card--without-image .journal-interesting__shade {
	background: linear-gradient(145deg, #5b5b5b, #171717);
}

body.single-post .journal-interesting__card-title {
	position: absolute;
	z-index: 2;
	right: 16px;
	bottom: 16px;
	left: 16px;
	display: block;
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.32;
	letter-spacing: -.018em;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}

body.single-post .journal-interesting__card:hover .journal-interesting__image img {
	transform: scale(1.04);
}

body.single-post .journal-interesting__card:hover .journal-interesting__card-title {
	color: #fff;
}

@media (max-width: 767px) {
	body.single-post .journal-interesting {
		padding: 26px 16px 30px;
	}

	body.single-post .journal-interesting__title {
		font-size: 26px !important;
	}

	body.single-post .journal-interesting__navigation {
		display: none;
	}

	body.single-post .journal-interesting__card {
		flex-basis: 76%;
	}
}
