/**
 * Bricksify widget: Hover Band, "Sliding highlight" mode. See hover-band-slide.js.
 *
 * Difference look (default): the band sits ABOVE the items and blends with
 * `difference`, so light text on it turns dark and whatever is behind the list
 * shows inverted. Do not isolate the list if it should invert the page behind.
 * Plain look: the band is a colour block behind the items.
 */

:where(.bx-band-slide) {
	position: relative;
}

.bx-band-slide > .bx-band-bar {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	display: flex;
	gap: var(--bx-band-gap, .5em);
	box-sizing: border-box;
	width: 0;
	height: 0;
	padding: 0 var(--bx-band-inset, 0px);
	opacity: 0;
	pointer-events: none;
	mix-blend-mode: difference;
	transition: opacity var(--bx-band-fade, .2s) cubic-bezier(.215, .61, .355, 1);
	will-change: transform, width, height;
}

.bx-band-slide > .bx-band-bar.is-on {
	opacity: 1;
	transition: none;
}

.bx-band-bar__seg {
	display: block;
	flex: 1 1 0;
	min-width: 0;
	height: 100%;
	background-color: var(--bx-band-color, #ffffff);
	border-radius: var(--bx-band-radius, 0px);
}

.bx-band-slide[data-bx-band-round="last"] .bx-band-bar__seg:not(:last-child) {
	border-radius: 0;
}

.bx-band-slide[data-bx-band-blend="normal"] > .bx-band-bar {
	z-index: 0;
	mix-blend-mode: normal;
}

:where(.bx-band-slide[data-bx-band-blend="normal"] > :not(.bx-band-bar)) {
	position: relative;
	z-index: 1;
}
