/* Image lightbox (assets/js/lightbox.js). Sites restyle it with the tokens --bloom-lb-bg, --bloom-lb-fg, --bloom-lb-muted
   and --bloom-lb-font, e.g. on :root. Selectors start with .bloom-lb so theme button styles do not leak in. */
.bloom-lb {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	overflow: hidden;
	color: var(--bloom-lb-fg, #101010);
	font-family: var(--bloom-lb-font, inherit);
	overscroll-behavior: contain;
}
.bloom-lb:not([open]) { display: none; }
.bloom-lb::backdrop { background: none; }
.bloom-lb .bloom-lb__bg { position: absolute; inset: 0; background: var(--bloom-lb-bg, rgb(255 255 255 / 0.97)); }

.bloom-lb .bloom-lb__bar {
	position: absolute;
	z-index: 2;
	top: 0;
	left: 0;
	right: 0;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 14px 0 32px;
	box-sizing: border-box;
}
.bloom-lb .bloom-lb__counter { font-size: 12px; line-height: 1; letter-spacing: 0.1em; font-variant-numeric: tabular-nums; }

.bloom-lb .bloom-lb__stage { position: absolute; z-index: 1; inset: 64px 88px 72px; touch-action: none; }
.bloom-lb .bloom-lb__img {
	position: absolute;
	inset: 0;
	max-width: none;
	margin: auto;
	transform-origin: 0 0;
	user-select: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
}
.bloom-lb .bloom-lb__img.is-loading { visibility: hidden; }

.bloom-lb .bloom-lb__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	box-shadow: none;
	color: inherit;
	line-height: 1;
	cursor: pointer;
	opacity: 0.6;
	transition: opacity 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}
.bloom-lb .bloom-lb__btn:hover,
.bloom-lb .bloom-lb__btn:focus-visible { opacity: 1; background: none; color: inherit; }
.bloom-lb .bloom-lb__btn:focus { outline: none; }
.bloom-lb .bloom-lb__btn:focus-visible { outline: 1px solid currentColor; outline-offset: -2px; }
.bloom-lb .bloom-lb__btn svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	pointer-events: none;
}
.bloom-lb .bloom-lb__prev,
.bloom-lb .bloom-lb__next { position: absolute; z-index: 2; top: 50%; margin-top: -22px; }
.bloom-lb .bloom-lb__prev { left: 22px; }
.bloom-lb .bloom-lb__next { right: 22px; }
.bloom-lb.is-single .bloom-lb__prev,
.bloom-lb.is-single .bloom-lb__next { display: none; }

.bloom-lb .bloom-lb__caption {
	position: absolute;
	z-index: 2;
	left: 88px;
	right: 88px;
	bottom: 0;
	height: 72px;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: 0.02em;
	color: var(--bloom-lb-muted, #6f6f6f);
}
.bloom-lb .bloom-lb__caption[hidden] { display: none; }
.bloom-lb .bloom-lb__live {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

@media (max-width: 1024px) {
	.bloom-lb .bloom-lb__bar { height: 56px; padding-left: 20px; padding-right: 6px; }
	.bloom-lb .bloom-lb__stage { inset: 56px 60px 64px; }
	.bloom-lb .bloom-lb__prev { left: 8px; }
	.bloom-lb .bloom-lb__next { right: 8px; }
	.bloom-lb .bloom-lb__caption { left: 60px; right: 60px; height: 64px; }
}
/* Touch screens swipe instead of using arrows. */
@media (hover: none) {
	.bloom-lb .bloom-lb__prev,
	.bloom-lb .bloom-lb__next { display: none; }
	.bloom-lb .bloom-lb__stage { left: 16px; right: 16px; }
}
