.v430-pp {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease-out, visibility 0s linear 0.2s;
}

.v430-pp[hidden] {
	display: none;
}

.v430-pp.is-open {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.2s ease-out, visibility 0s;
}

.v430-pp__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	cursor: pointer;
}

.v430-pp__dialog {
	position: relative;
	line-height: 0;
	transform: scale(0.97);
	transition: transform 0.2s ease-out;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.v430-pp.is-open .v430-pp__dialog {
	transform: none;
}

.v430-pp__link {
	display: block;
}

.v430-pp__link:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.v430-pp .v430-pp__img {
	display: block;
	max-width: none;
	height: auto;
	width: min(540px, calc(100vw - 32px), calc((100vh - 32px) * var(--v430-pp-ratio, 0.8)));
	width: min(540px, calc(100vw - 32px), calc((100dvh - 32px) * var(--v430-pp-ratio, 0.8)));
}

/* Reset dei pulsanti del tema */
.v430-pp .v430-pp__close {
	position: absolute;
	top: 8px;
	right: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	box-shadow: none;
	color: #fff;
	line-height: 1;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.15s ease-out;
}

.v430-pp .v430-pp__close:hover {
	background: rgba(0, 0, 0, 0.8);
	color: #fff;
}

.v430-pp .v430-pp__close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

html.v430-pp-lock,
html.v430-pp-lock body {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.v430-pp,
	.v430-pp.is-open,
	.v430-pp__dialog {
		transition: none;
	}

	.v430-pp__dialog {
		transform: none;
	}
}
