.wcpc-carousel {
	--wcpc-gap: 20px;
	--wcpc-border: #e4e4e4;
	--wcpc-text: #181818;
	--wcpc-muted: #666;
	--wcpc-accent: #9b5428;
	--wcpc-date-color: var(--wcpc-accent);
	--wcpc-all-link-color: var(--wcpc-accent);
	--wcpc-read-more-color: var(--wcpc-accent);
	--wcpc-mobile-button-bg-color: #1f1f1f;
	--wcpc-mobile-button-text-color: #fff;
	--wcpc-progress: #949ca1;
	box-sizing: border-box;
	width: min(100% - 32px, 1180px);
	margin: 46px auto;
	color: var(--wcpc-text);
}

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

.wcpc-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}

.wcpc-header h2 {
	margin: 0;
	font-size: clamp(24px, 2.2rem, 32px);
	line-height: 1.15;
	letter-spacing: 0;
}

.wcpc-all-link,
.wcpc-read-more,
.wcpc-all-button {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-weight: 600;
	text-decoration: none;
}

.wcpc-all-link {
	flex: 0 0 auto;
	color: var(--wcpc-all-link-color);
	font-size: 15px;
}

.wcpc-icon {
	width: 18px;
	height: 18px;
	stroke: currentColor;
}

.wcpc-rule {
	height: 1px;
	margin: 20px 0 24px;
	background: var(--wcpc-border);
}

.wcpc-stage {
	position: relative;
}

.wcpc-viewport {
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.wcpc-viewport::-webkit-scrollbar {
	display: none;
}

.wcpc-track {
	display: flex;
	gap: var(--wcpc-gap);
	padding: 0;
	margin: 0;
	list-style: none;
}

.wcpc-card {
	flex: 0 0 calc((100% - (var(--wcpc-gap) * 3)) / 4);
	min-width: 0;
	scroll-snap-align: start;
}

.wcpc-card article {
	height: 100%;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--wcpc-border);
	border-radius: 8px;
}

.wcpc-image-link {
	display: block;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
}

.wcpc-image {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	background: #f3f3f3;
}

.wcpc-image-placeholder {
	display: grid;
	place-items: center;
	font-size: 42px;
	font-weight: 700;
	color: #777;
}

.wcpc-card-body {
	padding: 16px 18px 18px;
}

.wcpc-date {
	display: block;
	margin-bottom: 8px;
	color: var(--wcpc-date-color);
	font-size: 14px;
	line-height: 1.2;
}

.wcpc-title {
	display: -webkit-box;
	min-height: 2.7em;
	margin: 0 0 10px;
	overflow: hidden;
	font-size: 18px;
	line-height: 1.35;
	letter-spacing: 0;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.wcpc-title a {
	color: inherit;
	text-decoration: none;
}

.wcpc-excerpt {
	display: -webkit-box;
	min-height: 4.5em;
	margin: 0 0 14px;
	overflow: hidden;
	color: #3d3d3d;
	font-size: 15px;
	line-height: 1.5;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.wcpc-read-more {
	color: var(--wcpc-read-more-color);
	font-size: 14px;
}

.wcpc-nav {
	position: absolute;
	z-index: 2;
	top: 40%;
	display: grid;
	width: 46px;
	height: 82px;
	padding: 0;
	place-items: center;
	color: #222;
	background: #fff;
	border: 1px solid var(--wcpc-border);
	border-radius: 3px;
	box-shadow: 0 8px 24px rgb(0 0 0 / 10%);
	cursor: pointer;
	transform: translateY(-50%);
}

.wcpc-nav:disabled {
	visibility: hidden;
	cursor: default;
}

.wcpc-nav-prev {
	left: -18px;
}

.wcpc-nav-prev .wcpc-icon {
	transform: rotate(180deg);
}

.wcpc-nav-next {
	right: -18px;
}

.wcpc-progress {
	position: relative;
	height: 8px;
	margin-top: 22px;
	overflow: hidden;
	background: #edf0f2;
	border-radius: 999px;
}

.wcpc-progress-bar {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 0%;
	height: 100%;
	background: var(--wcpc-progress);
	border-radius: inherit;
	transition: left 160ms ease, width 160ms ease;
}

.wcpc-all-button {
	display: none;
	justify-content: center;
	width: 100%;
	min-height: 46px;
	margin-top: 20px;
	padding: 11px 16px;
	color: var(--wcpc-mobile-button-text-color);
	background: var(--wcpc-mobile-button-bg-color);
	border-radius: 4px;
}

@media (max-width: 1180px) {
	.wcpc-card {
		flex-basis: calc((100% - (var(--wcpc-gap) * 2)) / 3);
	}
}

@media (max-width: 900px) {
	.wcpc-card {
		flex-basis: calc((100% - var(--wcpc-gap)) / 2);
	}

	.wcpc-nav {
		display: none;
	}

	.wcpc-all-link {
		display: none;
	}

	.wcpc-all-button {
		display: inline-flex;
	}
}

@media (max-width: 640px) {
	.wcpc-carousel {
		--wcpc-gap: 14px;
		width: min(100% - 24px, 1180px);
		margin: 36px auto;
	}

	.wcpc-header h2 {
		font-size: 25px;
	}

	.wcpc-rule {
		margin: 16px 0 20px;
	}

	.wcpc-card {
		flex-basis: calc(100% - 28px);
	}

	.wcpc-card-body {
		padding: 15px 16px 17px;
	}

	.wcpc-title {
		font-size: 17px;
	}
}
