.ssp-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, 0.65);
	opacity: 0;
	transition: opacity 0.25s ease;
}
.ssp-overlay[hidden] {
	display: none;
}
.ssp-overlay.ssp-visible {
	opacity: 1;
}
.ssp-dialog {
	position: relative;
	width: 100%;
	max-height: calc(100vh - 40px);
	transform: scale(0.96);
	transition: transform 0.25s ease;
}
.ssp-overlay.ssp-visible .ssp-dialog {
	transform: scale(1);
}
.ssp-dialog a {
	display: block;
}
.ssp-dialog .ssp-image {
	display: block;
	width: 100%;
	height: auto;
	max-height: calc(100vh - 40px);
	object-fit: contain;
	border-radius: 6px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
.ssp-close {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #222;
	font-size: 24px;
	line-height: 36px;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
	z-index: 1;
}
.ssp-close:hover,
.ssp-close:focus-visible {
	background: #f0f0f0;
	outline: 2px solid #fff;
	outline-offset: 2px;
}
@media (max-width: 600px) {
	.ssp-close {
		top: 6px;
		right: 6px;
	}
}
body.ssp-no-scroll {
	overflow: hidden;
}
