.np-cfc {
	--np-cfc-height: 360px;
	--np-cfc-gap: 18px;
	--np-cfc-active-scale: 1.08;
	--np-cfc-inactive-scale: .90;
	width: 100%;
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
}

.np-cfc *,
.np-cfc *::before,
.np-cfc *::after { box-sizing: border-box; }

.np-cfc-viewport {
	width: 100%;
	overflow: hidden;
	position: relative;
	padding: calc((var(--np-cfc-height) * (var(--np-cfc-active-scale) - 1)) / 2 + 4px) 0;
	touch-action: pan-y;
}

.np-cfc-track {
	display: flex;
	align-items: center;
	gap: 0;
	will-change: transform;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

.np-cfc-slide {
	flex: 0 0 auto;
	height: var(--np-cfc-height);
	position: relative;
	transform: scale(var(--np-cfc-inactive-scale));
	transform-origin: center center;
	transition: transform var(--np-cfc-speed, 1250ms) cubic-bezier(.35,0,.2,1);
	will-change: transform;
}

.np-cfc-slide.is-active {
	transform: scale(var(--np-cfc-active-scale));
	z-index: 5;
}

.np-cfc-card {
	display: block;
	width: 100%;
	height: 100%;
	position: relative;
	overflow: hidden;
	border: 0 solid transparent;
	background: #f4f0e8;
	border-radius: inherit;
	text-decoration: none;
	color: inherit;
	box-shadow: none;
	transition: border-color 450ms ease, box-shadow 450ms ease, background-color 450ms ease;
	isolation: isolate;
}

.np-cfc-slide.is-active .np-cfc-card {
	background: #fff;
	border-color: #D7EF27;
	box-shadow: 0 5px 18px rgba(0,0,0,.05);
}

.np-cfc-image {
	position: absolute !important;
	inset: 0 !important;
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	object-position: center;
	user-select: none;
	-webkit-user-drag: none;
}

.np-cfc-image-placeholder { background: linear-gradient(135deg, #eee, #ddd); }

.np-cfc-gradient {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 45%;
	z-index: 2;
	pointer-events: none;
	background: linear-gradient(to top, var(--np-cfc-gradient-1, rgba(0,0,0,.45)) 0%, var(--np-cfc-gradient-2, rgba(0,0,0,0)) 100%);
	transition: opacity 450ms ease, height 450ms ease;
}

.np-cfc-active-gradient {
	display: none;
}

.np-cfc-inactive-gradient {
	display: block;
}

.np-cfc-slide.is-active .np-cfc-active-gradient {
	display: block;
}

.np-cfc-slide.is-active .np-cfc-inactive-gradient {
	display: none;
}

.np-cfc-content {
	position: absolute !important;
	left: 0 !important;
	right: 0 !important;
	top: auto !important;
	bottom: 0 !important;
	z-index: 3;
	width: 100% !important;
	max-height: 58% !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	text-align: center;
	background: #fff;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	pointer-events: none;
	transition: opacity 350ms ease, transform 650ms cubic-bezier(.35,0,.2,1), visibility 0s linear 350ms;
	overflow: hidden;
}

.np-cfc-slide.is-active .np-cfc-content {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
	transition-delay: 0s;
}

.np-cfc-slide:not(.is-active) .np-cfc-content {
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

.np-cfc-title {
	margin: 0 0 8px;
	padding: 0;
	font-size: 14px;
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: 0;
	color: #111;
}

.np-cfc-description {
	margin: 0;
	padding: 0;
	font-size: 13px;
	line-height: 1.55;
	font-weight: 400;
	color: #444;
	max-width: 100%;
}

.np-cfc.is-dragging .np-cfc-track,
.np-cfc.is-dragging .np-cfc-slide { transition: none !important; }
.np-cfc.is-dragging { cursor: grabbing; }

@media (max-width: 1024px) {
	.np-cfc {
		--np-cfc-height: 320px;
		--np-cfc-gap: 14px;
		--np-cfc-active-scale: 1.06;
		--np-cfc-inactive-scale: .90;
	}
}

@media (max-width: 767px) {
	.np-cfc {
		--np-cfc-height: 300px;
		--np-cfc-gap: 10px;
		--np-cfc-active-scale: 1.05;
		--np-cfc-inactive-scale: .90;
	}

	.np-cfc-title { font-size: 12px; margin-bottom: 7px; }
	.np-cfc-description { font-size: 11px; line-height: 1.45; }
}

@media (prefers-reduced-motion: reduce) {
	.np-cfc-track,
	.np-cfc-slide,
	.np-cfc-content { transition-duration: 1ms !important; }
}
