/* Refs #528. Public image inspection and user-controlled motion. */
[data-flow-image-src] [data-flow-zoom] {
	display: block;
	width: 100%;
	min-height: 44px;
	padding: 0;
	border: 0;
	border-radius: inherit;
	background: transparent;
	overflow: hidden;
	cursor: zoom-in;
}
[data-flow-image-src] [data-flow-playback] {
	min-height: 44px;
	margin-top: 8px;
	padding: 8px 12px;
	border: 1px solid currentColor;
	border-radius: 4px;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}
.alki-flow-lightbox {
	max-width: min(96vw, 1200px);
	max-height: calc(100dvh - 32px);
	padding: 16px;
	border: 1px solid #747474;
	border-radius: 8px;
	background: #111111;
	color: #ffffff;
	box-shadow: 0 12px 40px #00000059;
}
.alki-flow-lightbox::backdrop {
	background: #000000cc;
}
.alki-flow-lightbox-tools {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
	margin-bottom: 12px;
}
.alki-flow-lightbox-tools button {
	min-height: 44px;
	padding: 8px 14px;
	border: 1px solid #747474;
	border-radius: 4px;
	background: #ffffff;
	color: #111111;
	font:
		500 14px / 1.4 Inter,
		system-ui,
		sans-serif;
	cursor: pointer;
}
.alki-flow-lightbox > img {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: calc(100dvh - 132px);
	margin-inline: auto;
	object-fit: contain;
}
:is(
	.alki-flow-lightbox-tools button,
	[data-flow-image-src] button
):focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 3px;
	box-shadow: 0 0 0 5px #111111;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	body.alki-master-surface [data-flow-zoom] img {
		transition: transform 180ms cubic-bezier(0.2, 0.7, 0.2, 1);
	}
	body.alki-master-surface [data-flow-zoom]:hover:not(:focus-visible) img {
		transform: scale(1.035);
	}
}
@media (max-width: 520px) {
	.alki-flow-lightbox {
		max-width: calc(100vw - 16px);
		padding: 8px;
	}
}
@media (prefers-reduced-motion: reduce) {
	[data-flow-zoom] img {
		transition: none;
	}
}
