.whp-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, 0.65);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}
/* Oculto por defecto: no ocupa espacio ni captura clics. */
.whp-overlay[hidden] {
	display: none !important;
}
/* Solo cuando el JS lo muestra pasa a flex y captura clics. */
.whp-overlay.whp-visible {
	display: flex;
	opacity: 1;
	pointer-events: auto;
}
.whp-modal {
	position: relative;
	max-width: 90vw;
	max-height: 90vh;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	transform: scale(0.95);
	transition: transform 0.25s ease;
	overflow: hidden;
	line-height: 0;
}
.whp-overlay.whp-visible .whp-modal {
	transform: scale(1);
}
.whp-modal .whp-img {
	display: block;
	max-width: 100%;
	max-height: 90vh;
	height: auto;
	width: auto;
}
.whp-modal a {
	display: block;
	line-height: 0;
}
.whp-close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 34px;
	height: 34px;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
}
.whp-close:hover {
	background: rgba(0, 0, 0, 0.85);
}
@media (max-width: 600px) {
	.whp-close {
		width: 40px;
		height: 40px;
		font-size: 26px;
	}
}
