.sjh-post-carousel {
	--sjh-carousel-blue: #29457c;
	--sjh-carousel-gap: 30px;
	--sjh-carousel-visible: 3;
	box-sizing: border-box;
	margin-inline: auto;
	max-width: 1124px;
	padding-inline: 50px;
	position: relative;
	width: 100%;
}

.sjh-post-carousel *,
.sjh-post-carousel *::before,
.sjh-post-carousel *::after {
	box-sizing: border-box;
}

.sjh-post-carousel__viewport {
	overflow: hidden;
	width: 100%;
}

.sjh-post-carousel__track {
	display: flex;
	gap: var(--sjh-carousel-gap);
	position: relative;
	transform: translate3d(0, 0, 0);
	transition: transform 450ms ease;
	will-change: transform;
}

.sjh-post-carousel__track.is-jumping {
	transition: none;
}

.sjh-post-carousel__slide {
	background: #fff;
	flex: 0 0 calc((100% - (var(--sjh-carousel-visible) - 1) * var(--sjh-carousel-gap)) / var(--sjh-carousel-visible));
	margin: 0;
	min-width: 0;
}

.sjh-post-carousel__link {
	color: inherit;
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none !important;
}

.sjh-post-carousel__image {
	aspect-ratio: 1.063 / 1;
	background: #e9ecf2;
	overflow: hidden;
	position: relative;
}

.sjh-post-carousel__image img {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform 280ms ease;
	width: 100%;
}

.sjh-post-carousel__link:hover .sjh-post-carousel__image img {
	transform: scale(1.025);
}

.sjh-post-carousel__image--placeholder {
	align-items: center;
	background: linear-gradient(145deg, #eef0f5, #d4d9e4);
	display: flex;
	justify-content: center;
}

.sjh-post-carousel__image--placeholder span {
	color: var(--sjh-carousel-blue);
	font: 600 22px/1 Montserrat, Arial, sans-serif;
	opacity: 0.42;
}

.sjh-post-carousel__caption {
	align-items: flex-start;
	background: var(--sjh-carousel-blue);
	color: #fff;
	display: flex;
	height: 100px;
	overflow: hidden;
	padding: 15px 40px 10px;
}

.sjh-post-carousel__caption h3 {
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	color: #fff;
	display: -webkit-box;
	font: 600 18px/25px Montserrat, Arial, sans-serif;
	margin: 0;
	overflow: hidden;
	padding: 0;
}

.sjh-post-carousel__arrow {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 0;
	color: var(--sjh-carousel-blue);
	cursor: pointer;
	display: flex;
	height: 45px;
	justify-content: center;
	padding: 0;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 45px;
	z-index: 4;
}

.sjh-post-carousel__arrow--previous {
	left: 0;
}

.sjh-post-carousel__arrow--next {
	right: 0;
}

.sjh-post-carousel__arrow svg {
	fill: none;
	height: 25px;
	stroke: currentColor;
	stroke-linecap: square;
	stroke-linejoin: miter;
	stroke-width: 2;
	width: 15px;
}

.sjh-post-carousel__arrow:hover {
	color: #da3e3f;
}

.sjh-post-carousel__arrow:focus,
.sjh-post-carousel__arrow:focus-visible {
	box-shadow: none;
	outline: none;
}

.sjh-post-carousel__arrow:disabled {
	cursor: default;
	opacity: 0.25;
}

.sjh-post-carousel__arrow[hidden] {
	display: none;
}

.sjh-post-carousel__empty {
	background: #f3f5f8;
	border-left: 4px solid #da3e3f;
	color: var(--sjh-carousel-blue, #29457c);
	font: 400 16px/1.5 Karla, Arial, sans-serif;
	padding: 24px;
}

.sjh-post-carousel__empty p {
	margin: 0;
}

@media (max-width: 900px) {
	.sjh-post-carousel {
		--sjh-carousel-gap: 24px;
		--sjh-carousel-visible: 2;
		padding-inline: 42px;
	}

	.sjh-post-carousel__caption {
		padding-inline: 26px;
	}
}

@media (max-width: 620px) {
	.sjh-post-carousel {
		--sjh-carousel-gap: 16px;
		--sjh-carousel-visible: 1;
		padding-inline: 34px;
	}

	.sjh-post-carousel__caption {
		height: 96px;
		padding: 14px 22px 10px;
	}

	.sjh-post-carousel__caption h3 {
		font-size: 18px;
		line-height: 24px;
	}

	.sjh-post-carousel__arrow {
		width: 30px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sjh-post-carousel__track {
		transition-duration: 1ms;
	}

	.sjh-post-carousel__image img {
		transition: none;
	}
}
