/* ===== Lightbox architetture: Bridge Mode / Cloud Mode ===== */
.arch-zoom {
	display: block;
	width: 100%;
	border: 0;
	padding: 0;
	background: none;
	text-decoration: none;
	border-radius: var(--border-radius--lg);
}
.arch-zoom img {
	display: block;
	width: 100%;
	height: auto;
}
.arch-zoom::after {
	content: "";
	position: absolute;
	top: 1.25rem;
	right: 0.625rem;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background-color: rgba(10, 22, 61, 0.88);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 1.125rem 1.125rem;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28), 0 0 0 2px rgba(255, 255, 255, 0.65);
	opacity: 0.92;
	transition: transform 0.25s ease, opacity 0.25s ease;
}
.arch-zoom:hover::after,
.arch-zoom:focus-visible::after {
	transform: scale(1.1);
	opacity: 1;
}
html.arch-lb-scroll {
	overflow: hidden;
}

/* --- overlay --- */
.arch-lb {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	padding: 3.5rem 1.5rem 1rem;
	background-color: rgba(10, 22, 61, 0.95);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}
.arch-lb.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}
.arch-lb-figure {
	margin: 0;
	flex: 1 1 auto;
	display: flex;
	flex-flow: column;
	align-items: stretch;
	width: 100%;
	min-height: 0;
}

/* --- area di visualizzazione: il viewport che si ritaglia --- */
.arch-lb-stage {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
	cursor: grab;
	touch-action: none;
	user-select: none;
	-webkit-user-select: none;
}
.arch-lb-stage.is-dragging {
	cursor: grabbing;
}
/* il contenitore che viene spostato e scalato */
.arch-lb-canvas {
	position: absolute;
	top: 0;
	left: 0;
	transform-origin: 0 0;
	will-change: transform;
}
.arch-lb-image {
	display: block;
	width: auto;
	height: auto;
	max-width: none;
	max-height: none;
	border-radius: var(--border-radius--lg);
	background-color: #ffffff;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
	-webkit-user-drag: none;
	user-select: none;
	-webkit-user-select: none;
}

/* --- strumenti --- */
.arch-lb-tools {
	flex: 0 0 auto;
	display: flex;
	gap: 0.5rem;
	justify-content: center;
	padding-top: 0.875rem;
}
.arch-lb-btn {
	width: 2.75rem;
	height: 2.75rem;
	border: 0;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.14);
	color: #ffffff;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease;
}
.arch-lb-btn:hover,
.arch-lb-btn:focus-visible {
	background-color: rgba(255, 255, 255, 0.28);
	outline: none;
}
.arch-lb-btn-text {
	width: auto;
	min-width: 3.75rem;
	padding: 0 0.875rem;
	border-radius: 1.375rem;
	font-size: 0.875rem;
}

/* --- didascalia --- */
.arch-lb-caption {
	flex: 0 0 auto;
	color: #ffffff;
	text-align: center;
	font-size: 0.9375rem;
	line-height: 1.5;
	padding-top: 0.5rem;
}
.arch-lb-caption strong {
	display: block;
	font-size: 1.125rem;
	font-weight: 500;
}
.arch-lb-hint {
	display: block;
	margin-top: 0.25rem;
	opacity: 0.65;
	font-size: 0.8125rem;
}

.arch-lb-close {
	position: fixed;
	top: 1.25rem;
	right: 1.25rem;
	width: 2.75rem;
	height: 2.75rem;
	border: 0;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.14);
	color: #ffffff;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease;
}
.arch-lb-close:hover,
.arch-lb-close:focus-visible {
	background-color: rgba(255, 255, 255, 0.28);
	outline: none;
}
@media screen and (max-width: 767px) {
	.arch-lb {
		padding: 3.5rem 0.75rem 0.75rem;
	}
	.arch-lb-btn {
		width: 2.5rem;
		height: 2.5rem;
	}
	.arch-lb-btn-text {
		min-width: 3.25rem;
	}
	.arch-zoom::after {
		top: 1rem;
		right: 0.25rem;
		width: 2rem;
		height: 2rem;
	}
}
@media (prefers-reduced-motion: reduce) {
	.arch-lb,
	.arch-zoom::after {
		transition: none;
	}
}
