.cfc-section {
	--cfc-accent: #16233d;
	padding: 40px 0;
	text-align: center;
	box-sizing: border-box;
	overflow-x: clip;
}

.cfc {
	position: relative;
	left: 50%;
	right: 50%;
	width: 100vw;
	margin-left: -50vw;
	margin-right: -50vw;
	background: transparent;
	user-select: none;
	outline: none;
}

.cfc-viewport {
	position: relative;
	height: clamp(260px, 40vw, 460px);
	overflow: hidden;
	perspective: 1800px;
	touch-action: pan-y;
}

.cfc-stage {
	position: absolute;
	inset: 0;
	transform-style: preserve-3d;
	transition: transform 0.1s linear;
}

.cfc-slide {
	position: absolute;
	top: 50%;
	left: 50%;
	border-radius: 4px;
	overflow: hidden;
	border: 3px solid #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	cursor: pointer;
	transition: transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1),
		clip-path 0.65s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.5s;
	will-change: transform;
	background-color: #ddd;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	-webkit-box-reflect: below 2px linear-gradient(to bottom, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.18) 100%);
}

.cfc-slide.is-center {
	cursor: default;
	box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}

/* Dim every side card so the center photo stands out — clipped to the same
   trapezoid shape automatically since the parent already clips its content. */
.cfc-slide:not(.is-center)::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	pointer-events: none;
}

.cfc-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 28px;
}

.cfc-dot {
	width: 26px;
	height: 6px;
	border-radius: 4px;
	background: rgba(20, 20, 35, 0.18);
	border: 0;
	padding: 0;
	cursor: pointer;
	transition: all 0.35s ease;
}

.cfc-dot.active {
	width: 42px;
	background: var(--cfc-accent);
}

@media (max-width: 640px) {
	.cfc-section {
		padding: 24px 0;
	}
}
