/**
 * Component: image accent.
 *
 * A gradient panel the size of the photo, offset behind it so a strip
 * shows beside it, aligned to the photo's top and bottom edges. Pure CSS.
 * Add .image-accent to the photo's wrapper; --start puts the strip on the
 * left instead of the right.
 *
 * @package cartrack
 */

.image-accent {
	position: relative;
	isolation: isolate;
	padding-inline-end: var(--image-accent-offset);
}

.image-accent::before {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline: var(--image-accent-offset) 0;
	z-index: -1;
	background: var(--image-accent-gradient);
}

.image-accent--start {
	padding-inline: var(--image-accent-offset) 0;
}

.image-accent--start::before {
	inset-inline: 0 var(--image-accent-offset);
}
