/* loovl-keraaminen-ennen-jalkeen (restyling.life, 12.11.2026): the frame of the before/after line that stands in the place of the
 * red photo on the ceramic coating page. The line itself (the «before» layer, the white line, the handle, the labels) is drawn by
 * the theme: classes rp-liuku* in assets/css/uusi.css, moved by assets/js/uusi.js - the same code as in the service cards of the
 * home page. Here only the frame: the place and the shape of the photo it replaces - the whole width of the column, at most
 * 978 px, 978:550, corners 8 px (measured 12.11.2026, pravki-2026-11-12/keraaminen-ennen-jalkeen/mitat.js), so the part of the
 * page keeps its height. The shift onto the dark text box comes from the old class of the photo frame (subserviceimageleft,
 * dop-stili.css), which the line inherits. */

.loovl-ke {
	position: relative;
	display: block;
	width: 100%;
	max-width: 978px;
}

/* The photos absolute inside (Safari does not apply percent heights in an aspect-ratio frame - frontend rule of 04.11.2026).
 * The files are 16:10, the frame is flatter: the photo is cut a little at the top and the bottom, the car stays whole. */
.loovl-ke__kuva {
	position: relative;
	overflow: hidden;
	aspect-ratio: 978 / 550;
	border-radius: 8px;
	background: #0c0c0e;
}

.loovl-ke__kuva img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0;
	border-radius: 0;
	object-fit: cover;
	transition: none;
	transform: none;
}
