.proofmedia-popup-overlay {
	display: flex;
	position: fixed;
	inset: 0;
	z-index: 9999;
	justify-content: center;
	align-items: center;

	opacity: 0;
	pointer-events: none;
	visibility: hidden;

	/* KEY FIX */
	transition:
		opacity 0.3s ease,
		visibility 0s linear 0.3s;
}

.proofmedia-popup-overlay.is-visible {
	opacity: 1;
	pointer-events: auto;
	visibility: visible;

	transition:
		opacity 0.3s ease,
		visibility 0s;
}

.proofmedia-popup-content {
	background: #fff;
	padding: 20px;
	max-width: 600px;
	width: 90%;
	position: relative;
	border-radius: 5px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);

	transform: translateY(20px);
	opacity: 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.proofmedia-popup-overlay.is-visible .proofmedia-popup-content {
	transform: translateY(0);
	opacity: 1;
}

.proofmedia-popup-close {
	position: absolute;
	top: 10px;
	right: 10px;
	border: none;
	background: transparent;
	font-size: 20px;
	cursor: pointer;
}