.atsa-pm-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, 0.6);
	opacity: 0;
	transition: opacity 0.28s ease;
	-webkit-overflow-scrolling: touch;
	overflow-y: auto;
}

.atsa-pm-overlay.is-visible {
	display: flex;
	opacity: 1;
}

.atsa-pm-modal {
	position: relative;
	width: 100%;
	margin: auto;
	background: transparent;
	border-radius: 14px;
	transform: translateY(12px) scale(0.98);
	transition: transform 0.28s ease;
}

.atsa-pm-overlay.is-visible .atsa-pm-modal {
	transform: translateY(0) scale(1);
}

.atsa-pm-link,
.atsa-pm-modal .atsa-pm-img {
	display: block;
	width: 100%;
}

.atsa-pm-img {
	height: auto;
	border-radius: 14px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.atsa-pm-overlay .atsa-pm-close {
	position: absolute;
	top: -14px;
	right: -14px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	line-height: 1 !important;
	font-size: 26px !important;
	font-family: Arial, sans-serif !important;
	font-weight: 400 !important;
	text-shadow: none !important;
	color: #222 !important;
	cursor: pointer;
	background: #fff !important;
	background-image: none !important;
	border: none !important;
	border-radius: 50% !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
	-webkit-appearance: none;
	appearance: none;
	transition: transform 0.15s ease, background 0.15s ease;
}

.atsa-pm-overlay .atsa-pm-close:hover,
.atsa-pm-overlay .atsa-pm-close:focus {
	transform: scale(1.08);
	color: #222 !important;
	background: #f2f2f2 !important;
	outline: none;
}

@media (max-width: 520px) {
	.atsa-pm-close {
		top: 8px;
		right: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.atsa-pm-overlay,
	.atsa-pm-modal {
		transition: none;
	}
}
