/* Before/After comparison — Base44 parity */
.ps-ba-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	width: 100%;
	margin-top: 40px;
}

@media (max-width: 1024px) {
	.ps-ba-grid {
		grid-template-columns: 1fr;
		max-width: 520px;
		margin-inline: auto;
	}
}

.ps-ba-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ps-ba-frame {
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid #e5e5e5;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
	background: #fff;
}

.ps-ba-slider {
	position: relative;
	aspect-ratio: 4 / 3;
	width: 100%;
	cursor: ew-resize;
	user-select: none;
	touch-action: none;
	overflow: hidden;
	background: #f1f5f9;
}

.ps-ba-slider img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
	max-width: none;
}

.ps-ba-after {
	z-index: 1;
}

.ps-ba-before-wrap {
	position: absolute;
	inset: 0;
	z-index: 2;
	overflow: hidden;
	clip-path: inset(0 50% 0 0);
}

.ps-ba-label {
	position: absolute;
	bottom: 12px;
	z-index: 4;
	border-radius: 999px;
	background: rgba(10, 20, 40, 0.8);
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	padding: 4px 12px;
	backdrop-filter: blur(6px);
	pointer-events: none;
	line-height: 1.4;
}

/* Physical L/R like Base44 (before = left half, after = right half). */
.ps-ba-label-before {
	left: 12px;
	right: auto;
}

.ps-ba-label-after {
	right: 12px;
	left: auto;
}

.ps-ba-handle {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	z-index: 5;
	width: 0;
	transform: translateX(-50%);
	pointer-events: none;
}

.ps-ba-line {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 2px;
	background: #c5a059;
	transform: translateX(-50%);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.ps-ba-knob {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 36px;
	height: 36px;
	border-radius: 999px;
	background: #fff;
	border: 2px solid #c5a059;
	display: grid;
	place-items: center;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
	color: #0a1428;
}

.ps-ba-knob svg {
	display: block;
	width: 16px;
	height: 16px;
}

.ps-ba-card h3 {
	margin: 4px 0 0;
	text-align: center;
	color: #0a1428;
	font-family: var(--ps-font-serif, ui-serif, Georgia, Cambria, "Times New Roman", Times, serif);
	font-weight: 400;
	font-weight: 400;
	font-size: 1.15rem;
}

.ps-ba-card p {
	margin: 0;
	text-align: center;
	color: #64748b;
	font-size: 0.95rem;
	line-height: 1.55;
}
