/* Lightbox per le foto delle schede modello (model.php), ripresa dal progetto Luxury */

.lb-overlay {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.88);
	-webkit-user-select: none;
	user-select: none;
}

.lb-overlay.is-open {
	display: flex;
}

body.lb-no-scroll {
	overflow: hidden;
}

.lb-figure {
	position: relative;
	margin: 0;
	max-width: 92vw;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.lb-img {
	display: block;
	max-width: 92vw;
	max-height: 84vh;
	width: auto;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 0.5em 2em rgba(0, 0, 0, 0.6);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.lb-img.is-loaded {
	opacity: 1;
}

.lb-counter {
	margin-top: 0.75em;
	color: #ddd;
	font-family: inherit;
	font-size: 0.9em;
	letter-spacing: 0.1em;
}

.lb-btn {
	position: absolute;
	z-index: 2;
	top: 50%;
	transform: translateY(-50%);
	width: 3em;
	height: 3em;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 1.5em;
	line-height: 3em;
	text-align: center;
	cursor: pointer;
	transition: background 0.2s ease;
	padding: 0;
	outline: 0;
}

.lb-btn:hover,
.lb-btn:focus {
	background: rgba(255, 255, 255, 0.35);
}

.lb-btn.is-hidden {
	display: none;
}

.lb-prev { left: 1vw; }
.lb-next { right: 1vw; }

.lb-close {
	position: fixed;
	top: 0.75em;
	right: 0.75em;
	transform: none;
	font-size: 1.25em;
}

@media screen and (max-width: 736px) {
	.lb-btn {
		width: 2.5em;
		height: 2.5em;
		line-height: 2.5em;
		font-size: 1.25em;
		background: rgba(255, 255, 255, 0.25);
	}
	.lb-img {
		max-width: 96vw;
		max-height: 78vh;
	}
}
