/*
 * DIP for WordPress. A photo used as a background is shown through DIP by a
 * placeholder inside its element, behind the element's content. The element
 * becomes the placeholder's container only where its own styles say nothing
 * about position or stacking, which is what :where() leaves to them.
 */
:where(.dip-bg-host) {
	position: relative;
	isolation: isolate;
}

img.dip-photo-bg {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	object-fit: cover;
	z-index: -1;
	pointer-events: none;
}

/* A photo DIP could not protect yet: an empty frame of its shape, never its original file. */
img.dip-held {
	background-color: rgba(127, 127, 127, 0.12);
}
