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

.phm-popup-overlay.phm-popup-visible {
	display: flex;
}

.phm-popup-content {
	position: relative;
	max-width: min(60vw, 800px);
	max-height: 90vh;
	display: inline-block;
	line-height: 0;
	animation: phm-popup-fade-in 0.2s ease-out;
}

@media (max-width: 768px) {
	.phm-popup-content {
		max-width: 80vw;
	}
}

@keyframes phm-popup-fade-in {
	from {
		opacity: 0;
		transform: scale(0.96);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.phm-popup-link {
	display: inline-block;
	line-height: 0;
}

.phm-popup-image {
	display: block;
	width: 100%;
	max-height: 90vh;
	height: auto;
	border-radius: 4px;
}

.phm-popup-close {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 32px;
	height: 32px;
	line-height: 30px;
	border-radius: 50%;
	background: #ffffff;
	color: #111111;
	border: none;
	font-size: 20px;
	font-weight: bold;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
	text-align: center;
	padding: 0;
	z-index: 1000000;
}

.phm-popup-close:hover {
	background: #f0f0f0;
}

@media (max-width: 480px) {
	.phm-popup-close {
		top: -12px;
		right: -12px;
		width: 28px;
		height: 28px;
		line-height: 26px;
		font-size: 18px;
	}
}
