.exp-lock,
.exp-lock body {
	overflow: hidden !important;
}

.exp-root {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease, visibility .25s ease;
}

.exp-root *,
.exp-root *::before,
.exp-root *::after {
	box-sizing: border-box;
}

.exp-root.exp-open {
	opacity: 1;
	visibility: visible;
}

.exp-overlay {
	position: absolute;
	inset: 0;
	background: rgba(20, 8, 10, .72);
	cursor: pointer;
}

.exp-dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	max-width: 100%;
	max-height: 100%;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
	overflow: hidden;
	transform: translateY(16px) scale(.98);
	transition: transform .25s ease;
}

.exp-open .exp-dialog {
	transform: none;
}

/* --- Grafiki: na komputerze obok siebie --- */
.exp-track {
	display: flex;
	gap: 16px;
	padding: 16px 16px 0;
	min-height: 0;
}

.exp-slide {
	flex: 0 1 auto;
	min-width: 0;
}

.exp-root .exp-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	color: #7a1e2b;
	text-decoration: none;
	border: 0;
	box-shadow: none;
}

.exp-root .exp-img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: calc(100vh - 160px);
	max-height: calc(100dvh - 160px);
	margin: 0 !important;
	border: 0 !important;
	border-radius: 6px !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
	transition: transform .2s ease, box-shadow .2s ease;
}

.exp-root a.exp-link:hover .exp-img,
.exp-root a.exp-link:focus-visible .exp-img {
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
}

.exp-root .exp-label {
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.exp-root a.exp-link:focus-visible {
	outline: 2px solid #b3122e;
	outline-offset: 4px;
	border-radius: 6px;
}

/* --- Kropki (telefon) --- */
.exp-dots {
	display: none;
	justify-content: center;
	gap: 10px;
	padding: 10px 0 0;
}

.exp-root .exp-dot {
	width: 10px;
	height: 10px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #d9c4c7;
	cursor: pointer;
}

.exp-root .exp-dot.is-active {
	background: #b3122e;
}

/* --- Przycisk OK --- */
.exp-actions {
	flex: 0 0 auto;
	display: flex;
	justify-content: center;
	padding: 12px 16px 14px;
	background: #fff;
}

.exp-root .exp-ok {
	min-width: 140px;
	margin: 0;
	padding: 11px 28px;
	border: 0;
	border-radius: 999px;
	background: #b3122e;
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .02em;
	text-transform: none;
	cursor: pointer;
	transition: background .2s ease;
}

.exp-root .exp-ok:hover,
.exp-root .exp-ok:focus-visible {
	background: #8c0d23;
	outline: 2px solid #8c0d23;
	outline-offset: 2px;
}

/* --- Zamknij --- */
.exp-root .exp-close {
	position: absolute;
	top: 6px;
	right: 6px;
	z-index: 2;
	width: 38px;
	height: 38px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .95);
	color: #222;
	font: 400 28px/38px Arial, sans-serif;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

.exp-root .exp-close:hover,
.exp-root .exp-close:focus-visible {
	background: #fff;
	outline: 2px solid #b3122e;
}

/* --- Telefon: przewijanie palcem, następna grafika lekko wystaje --- */
@media (max-width: 767px) {
	.exp-root {
		padding: 10px;
	}

	.exp-dialog {
		width: 100%;
	}

	.exp-track {
		gap: 10px;
		padding: 12px 12px 0;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.exp-track::-webkit-scrollbar {
		display: none;
	}

	.exp-slide {
		flex: 0 0 100%;
		scroll-snap-align: center;
	}

	.exp-multi .exp-slide {
		flex-basis: 88%;
	}

	.exp-root .exp-img {
		width: 100%;
		max-height: calc(100vh - 190px);
		max-height: calc(100dvh - 190px);
		object-fit: contain;
		box-shadow: none;
	}

	.exp-multi .exp-dots {
		display: flex;
	}
}

@media (prefers-reduced-motion: reduce) {
	.exp-root,
	.exp-dialog,
	.exp-root .exp-img {
		transition: none;
	}
}
