/*
 * pws/before-after. Written by hand (the block has no Astro source), in the design's
 * tokens: the surface and border colours, the accent rule, the display face.
 */
.ba-list[data-pws="before-after"] {
	display: grid;
	gap: 2.5rem 2rem;
	grid-template-columns: 1fr;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 900px) {
	.ba-list[data-pws="before-after"] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.ba-pair[data-pws="before-after"] {
	margin: 0;
}

.ba-frames[data-pws="before-after"] {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.5rem;
}

.ba-frame[data-pws="before-after"] {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-md);
	background: rgb(var(--color-surface-2));
	aspect-ratio: 4 / 3;
}

.ba-img[data-pws="before-after"] {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ba-tag[data-pws="before-after"] {
	position: absolute;
	left: 0.75rem;
	bottom: 0.75rem;
	padding: 0.2rem 0.6rem;
	border-radius: var(--radius-pill);
	background: rgb(var(--color-surface) / 0.9);
	color: rgb(var(--color-text));
	font-size: 0.8rem;
	letter-spacing: var(--tracking-wide);
}

.ba-caption[data-pws="before-after"] {
	margin-top: 0.85rem;
	font-family: var(--font-display);
	font-size: 1.05rem;
	color: rgb(var(--color-text));
}

.ba-note[data-pws="before-after"] {
	margin-top: 2rem;
	font-size: 0.9rem;
	color: rgb(var(--color-muted));
}
