.up-lightbox {
	width: 100vw;
	height: 100vh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 56px 72px;
	border: 0;
	background: transparent;
	overflow: hidden;
}

.up-lightbox::backdrop {
	background: rgba(29, 23, 96, .82);
}

.up-lightbox[open] {
	display: flex;
	align-items: center;
	justify-content: center;
}

.up-lightbox__obsah {
	display: grid;
	justify-items: center;
	gap: 12px;
	max-width: 100%;
	max-height: 100%;
	margin: 0;
}

.up-lightbox__obr {
	width: auto;
	height: auto;
	max-width: min(100%, 1000px);
	max-height: calc(100vh - 150px);
	object-fit: contain;
	border-radius: 10px;
	background: var(--up-bila);
	box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .55);
}

.up-lightbox__popis {
	color: var(--up-bila);
	font-size: 14px;
	font-weight: 700;
}

.up-lightbox__tl {
	position: fixed;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 2px solid var(--up-bila);
	border-radius: 50%;
	background: var(--up-ink);
	color: var(--up-bila);
	cursor: pointer;
}

.up-lightbox__tl svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.up-lightbox__tl:hover,
.up-lightbox__tl:focus-visible {
	border-color: var(--up-zelena);
	background: var(--up-zelena);
	outline: none;
}

.up-lightbox__tl--x {
	top: 18px;
	right: 18px;
}

.up-lightbox__tl--zpet {
	top: 50%;
	left: 18px;
	transform: translateY(-50%);
}

.up-lightbox__tl--dal {
	top: 50%;
	right: 18px;
	transform: translateY(-50%);
}

@media (max-width: 760px) {
	.up-lightbox {
		padding: 64px 12px 72px;
	}

	.up-lightbox__obr {
		max-height: calc(100vh - 160px);
	}

	.up-lightbox__tl--zpet,
	.up-lightbox__tl--dal {
		top: auto;
		bottom: 14px;
		transform: none;
	}

	.up-lightbox__tl--zpet {
		left: calc(50% - 56px);
	}

	.up-lightbox__tl--dal {
		right: calc(50% - 56px);
	}
}
