.ppp-popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.ppp-popup-overlay.ppp-visible {
	display: flex;
	opacity: 1;
}

/* Shrink-wraps to the natural width of your HTML block content, capped at the
   "Popup width" set in the admin — no forced/extra width, no dead space. */
.ppp-popup-wrapper {
	position: relative;
	display: block;
	/* block prevents inline trailing whitespace / phantom space */
	max-width: 100%;
	margin: 0;
	padding: 0;
	transform: scale(0.92);
	transition: transform 0.25s ease;
	overflow: visible;
}

.ppp-popup-overlay.ppp-visible .ppp-popup-wrapper {
	transform: scale(1);
}

/* No scroll — popup sizes to its content naturally */
.ppp-popup-box {
	overflow: hidden;
	margin: 0;
	padding: 0;
}

.ppp-popup-overlay .ppp-popup-content {
	margin: 0 !important;
	padding: 0 !important;
}

/* Hide the close button entirely */
.ppp-popup-close {
	display: none !important;
}

.ppp-popup-content img {
	max-width: 100%;
	height: auto;
	display: block;
}



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