.gal-hit {
	cursor: zoom-in;
}

.gal-hit:focus-visible {
	outline: 2px solid var(--k-black, #0a0a0a);
	outline-offset: 3px;
}

.gal-lb {
	border: none;
	padding: 0;
	margin: 0;
	max-width: none;
	max-height: none;
	width: 100%;
	height: 100%;
	background: rgba(8, 8, 10, 0.92);
	color: #fff;
}

.gal-lb::backdrop {
	background: rgba(0, 0, 0, 0.55);
}

.gal-lb-in {
	box-sizing: border-box;
	min-height: 100%;
	padding: 48px 16px 24px;
	display: grid;
	grid-template-columns: auto 1fr auto;
	grid-template-rows: 1fr auto auto;
	align-items: center;
	gap: 8px 12px;
}

.gal-lb-stage {
	grid-column: 2;
	grid-row: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: auto;
	max-height: min(78vh, 900px);
	touch-action: pinch-zoom;
}

.gal-lb-stage img {
	max-width: min(96vw, 1200px);
	max-height: min(78vh, 900px);
	width: auto;
	height: auto;
	object-fit: contain;
	transform-origin: center center;
	transition: transform 0.12s ease-out;
}

.gal-lb-close {
	position: fixed;
	top: 12px;
	right: 12px;
	z-index: 2;
	border: none;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.gal-lb-nav {
	border: 1.5px solid rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	font-size: 22px;
	cursor: pointer;
	grid-row: 1;
}

.gal-lb-prev {
	grid-column: 1;
}

.gal-lb-next {
	grid-column: 3;
}

.gal-lb-tools {
	grid-column: 2;
	grid-row: 2;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px 14px;
}

.gal-lb-zoom-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	margin: 0;
}

.gal-lb-zoom-label input[type="range"] {
	width: min(220px, 50vw);
	margin: 0;
}

.gal-lb-tools button {
	border: 1.5px solid rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	font-size: 20px;
	cursor: pointer;
}

.gal-lb-cap,
.gal-lb-count {
	grid-column: 1 / -1;
	text-align: center;
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.88);
}

.gal-lb-count {
	font-size: 12px;
	opacity: 0.75;
}

@media (width <= 560px) {
	.gal-lb-nav {
		display: none;
	}

	.gal-lb-in {
		grid-template-columns: 1fr;
	}
}
