.kkp-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 999999;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.72);
	padding: 20px;
}

.kkp-overlay.kkp-is-open {
	display: flex;
}

.kkp-dialog {
	position: relative;
	width: min(900px, 100%);
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
	padding: 42px 18px 18px;
}

.kkp-close {
	position: absolute;
	top: 6px;
	right: 10px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: #222;
	color: #fff;
	font: 700 28px/1 Arial, sans-serif;
	cursor: pointer;
}

.kkp-close:hover,
.kkp-close:focus {
	background: #000;
	outline: 3px solid #fff;
	outline-offset: 2px;
}

.kkp-images {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.kkp-images img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
}

body.kkp-no-scroll {
	overflow: hidden;
}

@media (max-width: 600px) {
	.kkp-overlay {
		padding: 10px;
	}

	.kkp-dialog {
		max-height: 94vh;
		padding: 40px 10px 10px;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.kkp-overlay.kkp-is-open .kkp-dialog {
		animation: kkp-popup-in 180ms ease-out;
	}

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

