/**
 * css/blocks.css: what every block that shows pictures shares. A place without a picture has the image of its title, the engine's:
 * a picture as the others.
 *
 * @package    way4os/w4os-helpers
 * @license    AGPLv3
 */
/* A picture of the grid (picture() of the templates, W4OS\Views\Picture): the picture on a tint of the text; a person without one
   the engine's silhouette, faint; a place's gone when it cannot be loaded; its own class gives its size */
.picture {
	display: inline-grid;
	/* One cell the size of the box: a picture fills it, centered (object-fit), never its top part only */
	grid-template: minmax(0, 1fr) / minmax(0, 1fr);
	place-items: center;
	overflow: hidden;
	vertical-align: middle;
	background: color-mix(in srgb, currentColor 10%, transparent);
}
.picture img {
	grid-area: 1 / 1;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
}
.picture[hidden] {
	display: none;
}
