/* Lightbox compartit (galeria de la home i galeria d'Instal·lacions) */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 60px var(--gutter);
}

.lightbox.is-open {
	display: flex;
}

.lightbox__backdrop {
	position: absolute;
	inset: 0;
	background-color: rgba(32, 37, 31, 0.7);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.lightbox__image {
	position: relative;
	z-index: 1;
	max-width: min(90vw, 1100px);
	max-height: 85vh;
	width: auto;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.lightbox__close {
	position: absolute;
	z-index: 2;
	top: 24px;
	right: 24px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background-color: var(--color-cream);
	color: var(--color-green-950);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.lightbox__close svg {
	width: 18px;
	height: 18px;
}

.lightbox__nav {
	position: absolute;
	z-index: 2;
	top: 50%;
	transform: translateY(-50%);
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: none;
	background-color: var(--color-tan);
	color: var(--color-cream-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.lightbox__nav svg {
	width: 22px;
	height: 22px;
}

.lightbox__nav:hover {
	opacity: 0.85;
}

.lightbox__nav--prev {
	left: 24px;
}

.lightbox__nav--next {
	right: 24px;
}

@media (max-width: 700px) {
	.lightbox__nav {
		width: 44px;
		height: 44px;
	}

	.lightbox__nav--prev {
		left: 10px;
	}

	.lightbox__nav--next {
		right: 10px;
	}
}

/* Galeria d'una sola foto: sense fletxes */
.lightbox.is-single .lightbox__nav {
	display: none;
}
