/**
 * Bricksify: Marquee (widget, Free). Movement by marquee.js.
 *   --bxmq-x     current offset, written by the script
 *   --bxmq-fade  edge fade width (Marquee > Edge fade, per breakpoint)
 * Without the script: the same row of items, clipped at the edges.
 */

.brxe-block.bxc-marquee,
.brxe-div.bxc-marquee,
.brxe-container.bxc-marquee,
.bxc-marquee {
	flex-direction: row;
	flex-wrap: nowrap;
	overflow: hidden;
}

.bxc-marquee > * {
	flex-shrink: 0;
}

.bxc-marquee.is-running > * {
	translate: var(--bxmq-x, 0px) 0;
	will-change: translate;
}

.bxc-marquee[data-mq-fade] {
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--bxmq-fade, 0px), #000 calc(100% - var(--bxmq-fade, 0px)), transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 var(--bxmq-fade, 0px), #000 calc(100% - var(--bxmq-fade, 0px)), transparent 100%);
}

.bxc-marquee.is-draggable {
	cursor: grab;
	touch-action: pan-y;
	-webkit-user-select: none;
	user-select: none;
}

.bxc-marquee.is-dragging {
	cursor: grabbing;
}

.bxc-marquee.is-draggable img {
	-webkit-user-drag: none;
}

/* Reduced motion: a row you scroll sideways by hand. */
.bxc-marquee.is-static {
	overflow-x: auto;
	scrollbar-width: thin;
}

@media (hover: hover) and (pointer: fine) {
	.bxc-marquee.is-static {
		overscroll-behavior-x: contain;
	}
}
