html.saek-popup-open,
html.saek-popup-open body {
	overflow: hidden;
}

.saek-popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}

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

.saek-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(12, 14, 18, 0.72);
	cursor: pointer;
}

.saek-popup__dialog {
	position: relative;
	z-index: 1;
	width: min(920px, 100%);
	max-height: min(90vh, 100%);
	background: #0f1115;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
	animation: saek-popup-in 220ms ease-out;
}

@keyframes saek-popup-in {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.saek-popup__close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 160ms ease, transform 160ms ease;
}

.saek-popup__close:hover,
.saek-popup__close:focus-visible {
	background: rgba(0, 0, 0, 0.8);
	transform: scale(1.05);
	outline: none;
}

.saek-popup__carousel {
	position: relative;
}

.saek-popup__track {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	background: #161920;
}

.saek-popup__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 280ms ease;
}

.saek-popup__slide.is-active {
	opacity: 1;
	visibility: visible;
}

.saek-popup__slide[hidden] {
	display: block;
}

.saek-popup__link,
.saek-popup__image {
	display: block;
	width: 100%;
	height: 100%;
}

.saek-popup__image {
	object-fit: cover;
}

.saek-popup__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: #111;
	font-size: 20px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	transition: background 160ms ease, transform 160ms ease;
}

.saek-popup__nav:hover,
.saek-popup__nav:focus-visible {
	background: #fff;
	transform: translateY(-50%) scale(1.05);
	outline: none;
}

.saek-popup__nav--prev {
	left: 12px;
}

.saek-popup__nav--next {
	right: 12px;
}

.saek-popup__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 14px;
	z-index: 2;
	display: flex;
	justify-content: center;
	gap: 8px;
	pointer-events: none;
}

.saek-popup__dot {
	pointer-events: auto;
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.45);
	cursor: pointer;
	transition: background 160ms ease, transform 160ms ease;
}

.saek-popup__dot.is-active,
.saek-popup__dot:hover,
.saek-popup__dot:focus-visible {
	background: #fff;
	transform: scale(1.15);
	outline: none;
}

@media (max-width: 640px) {
	.saek-popup {
		padding: 12px;
	}

	.saek-popup__dialog {
		border-radius: 12px;
	}

	.saek-popup__track {
		aspect-ratio: 4 / 5;
	}

	.saek-popup__nav {
		width: 38px;
		height: 38px;
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.saek-popup__dialog,
	.saek-popup__slide,
	.saek-popup__close,
	.saek-popup__nav,
	.saek-popup__dot {
		animation: none !important;
		transition: none !important;
	}
}
