.fbvidcamp-bandeau {
	display: flex;

	gap: 1.25rem;
	margin: 0;

	padding: 0.5rem 0.375rem;
	list-style: none;

	overflow-x: auto;
	scroll-snap-type: x proximity;
}

.fbvidcamp-bandeau__item {
	display: flex;
	flex-direction: column;
	flex: 0 0 auto;
	align-items: center;

	gap: 0.125rem;
	scroll-snap-align: start;

	width: var( --fbvidcamp-bubble-size, 4.5rem );
	cursor: pointer;
	overflow: visible;
	background: transparent;
	border: 0;
	padding: 0;
}

.fbvidcamp-bandeau__vignette,
.fbvidcamp-bandeau .fbvidcamp-avatar {
	width: var( --fbvidcamp-bubble-size, 4.5rem );
	height: var( --fbvidcamp-bubble-size, 4.5rem );
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	object-fit: cover;
	object-position: center;

	outline: 3px solid var( --fbvidcamp-ring, #22c55e );
	outline-offset: 3px;

	transform-origin: center;
	transition: outline-color 0.2s ease, transform 0.2s ease;

	background-color: #e5e7eb;
}

.fbvidcamp-bandeau .fbvidcamp-bandeau__vignette {
	display: block;
	flex: 0 0 auto;
	width: var( --fbvidcamp-bubble-size, 4.5rem );
	height: var( --fbvidcamp-bubble-size, 4.5rem );
	min-width: var( --fbvidcamp-bubble-size, 4.5rem );
	max-width: none;
	max-height: none;
}

.fbvidcamp-bandeau__item:hover .fbvidcamp-bandeau__vignette,
.fbvidcamp-bandeau__item:hover .fbvidcamp-avatar {
	transform: scale( 1.08 );
}

.fbvidcamp-bandeau__item--viewed .fbvidcamp-bandeau__vignette,
.fbvidcamp-bandeau__item--viewed .fbvidcamp-avatar {
	outline-color: #9ca3af;
}

.fbvidcamp-bandeau--gradient .fbvidcamp-bandeau__vignette,
.fbvidcamp-bandeau--gradient .fbvidcamp-avatar {
	outline: none;
	border: 3px solid transparent;
	padding: 3px;

	background-image: linear-gradient( #e5e7eb, #e5e7eb ), var( --fbvidcamp-ring-gradient );
	background-origin: border-box;
	background-clip: content-box, border-box;
}

.fbvidcamp-bandeau--gradient .fbvidcamp-bandeau__item--viewed .fbvidcamp-bandeau__vignette,
.fbvidcamp-bandeau--gradient .fbvidcamp-bandeau__item--viewed .fbvidcamp-avatar {
	background-image: linear-gradient( #e5e7eb, #e5e7eb ), linear-gradient( #9ca3af, #9ca3af );
}

.fbvidcamp-bandeau .fbvidcamp-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1;

	user-select: none;
}

.fbvidcamp-bandeau__nom {
	max-width: 100%;
	overflow: hidden;
	font-size: 0.75rem;
	line-height: 1.2;
	text-align: center;
	text-overflow: ellipsis;
	white-space: nowrap;

	margin-top: calc( var( --fbvidcamp-bubble-size, 4.5rem ) * 0.04 + 0.375rem );
}

@media ( prefers-reduced-motion: reduce ) {

	.fbvidcamp-bandeau {
		scroll-snap-type: none;
	}
}

.fbvidcamp-bandeau--auto-loop {
	scroll-snap-type: none;

	scrollbar-width: none;
	-ms-overflow-style: none;
}

.fbvidcamp-bandeau--auto-loop::-webkit-scrollbar {
	display: none;
}

.fbvidcamp-bandeau--auto-loop {
	cursor: grab;
}

.fbvidcamp-bandeau--auto-loop.fbvidcamp-bandeau--glisse {
	cursor: grabbing;
}

.fbvidcamp-bandeau--auto-loop .fbvidcamp-bandeau__vignette,
.fbvidcamp-bandeau--auto-loop .fbvidcamp-avatar {
	-webkit-user-drag: none;
	user-select: none;
}

.fbvidcamp-bandeau--auto-loop {
	-webkit-mask-image: linear-gradient(
		to right,
		transparent 0,
		#000 48px,
		#000 calc( 100% - 48px ),
		transparent 100%
	);
	mask-image: linear-gradient(
		to right,
		transparent 0,
		#000 48px,
		#000 calc( 100% - 48px ),
		transparent 100%
	);
}

@media ( prefers-reduced-motion: reduce ) {

	.fbvidcamp-bandeau--auto-loop {
		scroll-snap-type: proximity;
		scrollbar-width: auto;
		-ms-overflow-style: auto;
		cursor: auto;
		-webkit-mask-image: none;
		mask-image: none;
	}

	.fbvidcamp-bandeau--auto-loop::-webkit-scrollbar {
		display: block;
	}
}
