/* ksw Popup */
body.ksw-popup-open {
	overflow: hidden;
}

.ksw-popup[hidden] {
	display: none !important;
}

.ksw-popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	opacity: 0;
	transition: opacity .3s ease;
}

.ksw-popup.is-visible {
	opacity: 1;
}

.ksw-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .75);
	cursor: pointer;
}

.ksw-popup__box {
	position: relative;
	width: 100%;
	max-width: 900px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	background: #fff;
	padding: 60px 30px 30px;
	box-sizing: border-box;
	border-radius: 6px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
	transform: translateY(20px);
	transition: transform .3s ease;
}

.ksw-popup.is-visible .ksw-popup__box {
	transform: none;
}

.ksw-popup__close {
	position: absolute;
	top: 8px;
	right: 12px;
	width: 48px;
	height: 48px;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	color: #222;
	font-size: 48px;
	line-height: 48px;
	font-weight: 300;
	cursor: pointer;
	box-shadow: none;
}

.ksw-popup__close:hover,
.ksw-popup__close:focus {
	background: transparent;
	color: #000;
	opacity: .65;
}

.ksw-popup__video {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
}

.ksw-popup__video iframe,
.ksw-popup__video video {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	border: 0;
}

.ksw-popup__actions {
	margin-top: 24px;
	text-align: center;
}

.ksw-popup__button {
	display: inline-block;
	text-decoration: none;
	line-height: 1.3;
	transition: background .2s ease, color .2s ease;
}

@media (max-width: 600px) {
	.ksw-popup {
		padding: 10px;
	}
	.ksw-popup__box {
		max-height: calc(100vh - 20px);
		padding: 52px 15px 20px;
	}
	.ksw-popup__close {
		top: 4px;
		right: 6px;
		font-size: 42px;
	}
	.ksw-popup__button {
		display: block;
	}
}

/* Grafik-Variante */
.ksw-popup--image .ksw-popup__box {
	width: auto;
	max-width: min(900px, 100%);
}

.ksw-popup__image a {
	display: block;
}

.ksw-popup__image img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 130px);
	width: auto;
	height: auto;
	margin: 0 auto;
}
