/* Towndl Scenes: a photograph with one of Towndl's screenshots laid into its monitor.
   The photograph fills a square box. The screenshot sits in a 1000-unit box that is scaled to the square's width,
   and one matrix bends it onto the monitor's four corners. Where a browser lacks these features the screenshot is
   left out and the photograph's own grey screen shows. */
.tscene {
	container-type: inline-size;
	position: relative;
	aspect-ratio: 1;
	overflow: hidden;
	margin: 0 auto;
	max-width: 1024px;
}
.tscene > .ts-pic {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}
.tscene .ts-fit {
	display: none;
	position: absolute;
	left: 0;
	top: 0;
	width: 1000px;
	height: 1000px;
	transform-origin: 0 0;
	pointer-events: none;
}
.tscene .ts-shot {
	position: absolute;
	left: 0;
	top: 0;
	width: 1000px;
	height: 562.5px;
	max-width: none;
	transform-origin: 0 0;
}
.tscene .ts-shot[hidden] {
	display: none;
}
@supports (transform: scale(tan(atan2(1cqw, 1px)))) {
	.tscene .ts-fit {
		display: block;
		transform: scale(tan(atan2(100cqw, 1000px)));
	}
}
/* While a different picture is being fetched, the screenshot waits so that it never sits on the wrong monitor. */
.tscene.ts-wait .ts-fit {
	visibility: hidden;
}
