/* SB Lightbox. Alle selektorer er avgrenset til .sb-lb, og geometrien er låst med !important
   så temaets bildestiler ikke flytter eller endrer noe. Ingen lukkeknapp: klikk eller Esc lukker. */

.sb-lb {
	position: fixed !important;
	inset: 0 !important;
	z-index: 999999 !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 16px !important;
	margin: 0 !important;
	padding: 24px !important;
	box-sizing: border-box !important;
	background: rgba(10, 12, 16, 0.72);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	backdrop-filter: blur(14px) saturate(140%);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0s linear 0.25s;
	cursor: zoom-out;
}

.sb-lb.is-open {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.25s ease;
}

.sb-lb .sb-lb__img {
	display: block !important;
	width: auto !important;
	height: auto !important;
	max-width: 80vw !important;
	max-height: 80vh !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 16px !important;
	object-fit: contain !important;
	box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.55);
	opacity: 0;
	transform: scale(0.96);
	transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
	cursor: zoom-out;
}

.sb-lb.is-open .sb-lb__img.is-loaded {
	opacity: 1;
	transform: scale(1);
}

.sb-lb .sb-lb__cap {
	max-width: min(80vw, 720px) !important;
	margin: 0 !important;
	padding: 8px 16px !important;
	border-radius: 999px !important;
	background: rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.92) !important;
	font-size: 14px !important;
	line-height: 1.45 !important;
	text-align: center !important;
	cursor: zoom-out;
}

.sb-lb .sb-lb__cap:empty {
	display: none !important;
}

.sb-lb:focus {
	outline: none !important;
}

.sb-lb-zoom {
	cursor: zoom-in !important;
}

html.sb-lb-lock {
	overflow: hidden !important;
}

@media (prefers-reduced-motion: reduce) {
	.sb-lb,
	.sb-lb .sb-lb__img {
		transition: none !important;
	}

	.sb-lb .sb-lb__img {
		transform: none !important;
	}
}
