/* Foto-lightbox (gedeeld door floormap-viewer.php en share-viewer.php) */
#photoLightbox {
	position: fixed; top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0,0,0,0.85); z-index: 500;
	display: none; align-items: center; justify-content: center; cursor: pointer;
}
#photoLightbox.open { display: flex; }
#photoLightbox img {
	max-width: 90vw; max-height: 90vh; object-fit: contain;
	border-radius: 6px; box-shadow: 0 4px 30px rgba(0,0,0,0.5); cursor: default;
}
#photoLightboxClose {
	position: absolute; top: 16px; right: 20px;
	width: 40px; height: 40px; padding: 0 0 3px;
	display: flex; align-items: center; justify-content: center;
	background: rgba(0,0,0,0.6); color: #fff;
	border: 2px solid rgba(255,255,255,0.9); border-radius: 50%;
	box-shadow: 0 2px 10px rgba(0,0,0,0.5);
	font-size: 28px; line-height: 1; cursor: pointer;
}
#photoLightboxClose:hover { background: rgba(0,0,0,0.85); border-color: #e94560; }
.lightbox-nav {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 48px; height: 48px; padding: 0 0 4px;
	display: flex; align-items: center; justify-content: center;
	background: rgba(0,0,0,0.6); color: #fff;
	border: 2px solid rgba(255,255,255,0.9); border-radius: 50%;
	box-shadow: 0 2px 10px rgba(0,0,0,0.5);
	font-size: 32px; line-height: 1; cursor: pointer; user-select: none;
}
.lightbox-nav:hover { background: rgba(0,0,0,0.85); border-color: #e94560; }
.lightbox-nav.disabled { opacity: 0.25; cursor: default; }
.lightbox-nav.disabled:hover { background: rgba(0,0,0,0.6); border-color: rgba(255,255,255,0.9); }
#lightboxPrev { left: 16px; }
#lightboxNext { right: 16px; }
#lightboxCounter {
	position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
	background: rgba(0,0,0,0.6); color: #fff; font-size: 13px;
	padding: 4px 12px; border-radius: 999px;
}
#lightboxCounter:empty { display: none; }
