/* Lightbox foto eventi (pati-core/lightbox.js) */
.pati-lightbox {
	width: 100vw;
	max-width: none;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgb(30, 17, 28);
	color: #fff;
}
.pati-lightbox::backdrop { background: rgb(30, 17, 28); }
.pati-lightbox__figure {
	display: grid;
	place-items: center;
	gap: 10px;
	height: 100%;
	margin: 0;
	padding: 56px 64px 48px;
	box-sizing: border-box;
}
.pati-lightbox__figure img {
	max-width: 100%;
	max-height: calc(100dvh - 140px);
	object-fit: contain;
	border: 6px solid #fff;
	border-radius: 4px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
}
.pati-lightbox__figure figcaption { font-family: var(--pati-font-hand, cursive); font-size: 1.4rem; text-align: center; }
.pati-lightbox .pati-lightbox__btn {
	position: absolute;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0 !important;
	border: 2px solid #fff !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, .12) !important;
	color: #fff !important;
	box-shadow: none !important;
	font: 400 2rem/1 system-ui, sans-serif !important;
	cursor: pointer;
}
.pati-lightbox .pati-lightbox__btn:hover { background: var(--pati-green, #9dc32a) !important; color: var(--pati-ink, #2e1a2b) !important; }
.pati-lightbox .pati-lightbox__btn[hidden] { display: none; }
.pati-lightbox__close { top: 14px; right: 14px; }
.pati-lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.pati-lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.pati-lightbox__count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); font-size: .9rem; opacity: .8; }
@media (max-width: 600px) {
	.pati-lightbox__figure { padding: 56px 12px 48px; }
	.pati-lightbox__prev, .pati-lightbox__next { top: auto; bottom: 8px; transform: none; }
}
