.lity {
	z-index: 9990;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	white-space: nowrap;
	background: rgba(0, 0, 0, 0.9);
	outline: none !important;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.lity.lity-opened {
	opacity: 1;
}

.lity.lity-closed {
	opacity: 0;
}

.lity-active {
	overflow: hidden;
}

.lity-wrap {
	z-index: 9990;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	text-align: center;
	outline: none !important;
}

.lity-wrap:before {
	content: '';
	display: inline-block;
	height: 100%;
	vertical-align: middle;
	margin-right: -0.25em;
}

.lity-loader {
	z-index: 9991;
	color: #fff;
	position: absolute;
	top: 50%;
	margin-top: -0.8em;
	width: 100%;
	text-align: center;
	font-size: 14px;
	font-family: Arial, Helvetica, sans-serif;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.lity-loading .lity-loader {
	opacity: 1;
}

.lity-content {
	z-index: 9993;
	width: 100%;
	transform: scale(1);
	transition: transform 0.3s ease;
}

.lity-loading .lity-content,
.lity-closed .lity-content {
	transform: scale(0.8);
}

.lity-content:after {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	right: 0;
	display: block;
	width: auto;
	height: auto;
	z-index: -1;
	box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

.lity-close {
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 0 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9994;
	position: fixed;
	right: 1rem;
	top: 1rem;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: #fff;
	color: #000;
	font-size: 28px;
	line-height: 1;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	outline: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
	-webkit-appearance: none;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lity-close:hover,
.lity-close:focus,
.lity-close:active {
	background-color: #333;
	color: #fff;
	transform: scale(1.05);
}

.lity-container {
	z-index: 9992;
	position: relative;
	text-align: left;
	vertical-align: middle;
	display: inline-block;
	white-space: normal;
	max-width: 100%;
	max-height: 100%;
	outline: none !important;
}

.lity-full .lity-container {
	width: 100%;
	height: 90%;
}

.lity-iframe .lity-container,
.lity-youtube .lity-container,
.lity-vimeo .lity-container,
.lity-facebookvideo .lity-container,
.lity-googlemaps .lity-container {
	width: 100%;
	max-width: 1020px;
}

.lity-image img {
	max-width: 100%;
	display: block;
	line-height: 0;
	border: 0;
}

.lity-iframe-container {
	position: relative;
	width: 100%;
	height: 0;
	padding-top: 56.25%;
	overflow: auto;
	pointer-events: auto;
	transform: translateZ(0);
	-webkit-overflow-scrolling: touch;
}

.lity-iframe-container iframe {
	position: absolute;
	display: block;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
	box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
	background: #000;
}

/* --- PDF --- */

.lity-pdf .lity-container {
	width: calc(100% - 2rem);
	max-width: 900px;
}

.lity-pdf .lity-iframe-container {
	/* PDFs sind hochformatig: kein 16:9-Padding-Trick,
	   sondern feste Höhe relativ zum Viewport */
	height: min(90vh, 90svh);
	padding-top: 0;
	border-radius: 6px;
	overflow: hidden;
}

.lity-pdf .lity-iframe-container iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #fff;
}

.lity-hide {
	display: none;
}