.popupd5-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.65);
	z-index: 999999;
	align-items: center;
	justify-content: center;
}

.popupd5-overlay.popupd5-visible {
	display: flex;
}

.popupd5-modal {
	position: relative;
	max-width: 63%;
	max-height: 63vh;
	animation: popupd5-fade-in 0.25s ease-out;
}

.popupd5-modal img {
	display: block;
	max-width: 100%;
	max-height: 63vh;
	border-radius: 6px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.popupd5-close {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #fff;
	color: #222;
	border: none;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.popupd5-close:hover {
	background: #f2f2f2;
}

@keyframes popupd5-fade-in {
	from {
		opacity: 0;
		transform: scale(0.95);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@media (max-width: 767px) {
	.popupd5-modal {
		max-width: 92%;
		max-height: 80vh;
	}

	.popupd5-modal img {
		max-height: 80vh;
	}
}

@media (max-width: 480px) {
	.popupd5-close {
		top: 8px;
		right: 8px;
	}
}
