/**
 * Kolonia Marzeń — Galeria: nakładka (lightbox) do przeglądania dużych zdjęć
 * bez opuszczania strony — z paskiem miniatur i przełączaniem
 * poprzednie/następne. Niezależne od motywu.
 */
html.km-gal-lightbox-open,
html.km-gal-lightbox-open body {
	overflow: hidden;
}

.km-gal-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}
.km-gal-lightbox[hidden] {
	display: none;
}
/* W trybie pełnoekranowym (po kliknięciu zdjęcia) dopilnuj, żeby tło
   wypełniało cały ekran, a nie tylko obszar dotychczasowej strony. */
.km-gal-lightbox:fullscreen,
.km-gal-lightbox:-webkit-full-screen,
.km-gal-lightbox:-ms-fullscreen {
	width: 100%;
	height: 100%;
	background: rgba(10, 10, 12, 0.94);
}

.km-gal-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 12, 0.94);
}

.km-gal-lightbox__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	width: 100%;
	max-width: 1100px;
	padding: 24px 16px;
	box-sizing: border-box;
}

.km-gal-lightbox__close {
	position: absolute;
	top: -6px;
	right: 8px;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}
.km-gal-lightbox__close:hover,
.km-gal-lightbox__close:focus {
	background: rgba(255, 255, 255, 0.28);
}

.km-gal-lightbox__stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	gap: 12px;
}

.km-gal-lightbox__figure {
	margin: 0;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.km-gal-lightbox__image {
	max-width: 100%;
	max-height: 72vh;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 10px;
	box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.6);
	background: #111;
}

.km-gal-lightbox__nav {
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}
.km-gal-lightbox__nav:hover,
.km-gal-lightbox__nav:focus {
	background: rgba(255, 255, 255, 0.28);
}

.km-gal-lightbox__counter {
	color: #cfcac0;
	font-size: 0.85rem;
	letter-spacing: 0.02em;
}

.km-gal-lightbox__strip {
	display: flex;
	gap: 8px;
	max-width: 100%;
	overflow-x: auto;
	padding: 4px 2px 8px;
	scroll-behavior: smooth;
}

.km-gal-lightbox__thumb {
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	opacity: 0.6;
	transition: opacity 0.2s ease, border-color 0.2s ease;
	background: #222;
}
.km-gal-lightbox__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.km-gal-lightbox__thumb:hover,
.km-gal-lightbox__thumb:focus {
	opacity: 0.85;
}
.km-gal-lightbox__thumb.is-active {
	opacity: 1;
	border-color: #fff;
}

@media (max-width: 640px) {
	.km-gal-lightbox__inner {
		padding: 16px 8px;
		gap: 10px;
	}
	.km-gal-lightbox__close {
		top: -2px;
		right: 2px;
		width: 38px;
		height: 38px;
		font-size: 22px;
	}
	.km-gal-lightbox__image {
		max-height: 58vh;
	}
	.km-gal-lightbox__nav {
		width: 38px;
		height: 38px;
		font-size: 16px;
	}
	.km-gal-lightbox__thumb {
		width: 48px;
		height: 48px;
	}
}
