.whtrust-carousel {
	--wc-desktop: 3;
	--whtrust-carousel-visible: var( --wc-desktop );
	position: relative;
	max-width: 100%;
	margin: 0 auto;
	padding: 0 56px;
	box-sizing: border-box;
}

@media ( max-width: 900px ) {
	.whtrust-carousel {
		--whtrust-carousel-visible: min( var( --wc-desktop ), 2 );
	}
}

@media ( max-width: 600px ) {
	.whtrust-carousel {
		--whtrust-carousel-visible: 1;
	}
}

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

.whtrust-carousel__track {
	display: flex;
	margin: 0 -12px;
	padding: 0;
	list-style: none;
	transition: transform 0.4s ease;
	will-change: transform;
}

.whtrust-carousel__slide {
	flex: 0 0 calc( 100% / var( --whtrust-carousel-visible ) );
	max-width: calc( 100% / var( --whtrust-carousel-visible ) );
	padding: 0 12px;
	box-sizing: border-box;
}

.whtrust-carousel__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	overflow: hidden;
}

.whtrust-carousel__media {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #eee;
}

.whtrust-carousel__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.whtrust-carousel__media-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient( 135deg, #e2e2e2, #f2f2f2 );
}

.whtrust-carousel__body {
	flex: 1 1 auto;
	padding: 20px;
}

.whtrust-carousel__title {
	margin: 0 0 12px;
	font-size: 1.5em;
	line-height: 1.25;
}

.whtrust-carousel__title a {
	text-decoration: none;
	color: #042c76;
}

.whtrust-carousel__excerpt {
	margin: 0 0 16px;
	line-height: 1.6;
}

.whtrust-carousel__link {
	display: inline-block;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 2px solid currentColor;
}

.whtrust-carousel__arrow {
	position: absolute;
	top: 50%;
	transform: translateY( -50% );
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid #ddd;
	border-radius: 50%;
	background: #fff;
	color: #222;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.whtrust-carousel__arrow:hover,
.whtrust-carousel__arrow:focus-visible {
	background: #f2f2f2;
	border-color: #bbb;
}

.whtrust-carousel__arrow--prev {
	left: 0;
}

.whtrust-carousel__arrow--next {
	right: 0;
}

.whtrust-carousel__dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 24px;
}

.whtrust-carousel__dots.is-hidden,
.whtrust-carousel__arrow.is-hidden {
	display: none;
}

.whtrust-carousel__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #ccc;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.whtrust-carousel__dot:hover,
.whtrust-carousel__dot:focus-visible {
	background: #999;
}

.whtrust-carousel__dot.is-active {
	background: #222;
	transform: scale( 1.15 );
}

.whtrust-carousel__admin-notice {
	padding: 12px 16px;
	border-left: 4px solid #d63638;
	background: #fcf0f1;
	color: #444;
}

@media ( max-width: 600px ) {
	.whtrust-carousel {
		padding: 0 44px;
	}

	.whtrust-carousel__body {
		padding: 16px;
	}

	.whtrust-carousel__arrow {
		width: 36px;
		height: 36px;
		font-size: 18px;
	}
}
