/* =========================================================
   Voxel Room — CSS v1.0.0
   ========================================================= */

.vr-wrapper {
	position: relative;
	width: 100%;
	overflow: hidden;
	user-select: none;
	-webkit-user-select: none;
}

/* ---------- Canvas ---------- */
.vr-canvas {
	display: block;
	width: 100%;
	height: 640px;
	cursor: crosshair;
	touch-action: none;
	transition: filter 0.4s ease;
	image-rendering: pixelated;
	image-rendering: crisp-edges;
}

.vr-wrapper--lb-open .vr-canvas {
	filter: blur(6px) brightness(0.3);
}

/* ---------- Lightbox ---------- */
.vr-lightbox {
	--vr-lb-bg: rgba(5, 8, 18, 0.96);
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.vr-lightbox[aria-hidden="false"] {
	opacity: 1;
	pointer-events: auto;
}

.vr-lightbox__overlay {
	position: absolute;
	inset: 0;
	background: var(--vr-lb-bg);
	cursor: pointer;
}

.vr-lightbox__panel {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	transform: scale(0.84) translateY(8px);
	transition: transform 0.36s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vr-lightbox[aria-hidden="false"] .vr-lightbox__panel {
	transform: scale(1) translateY(0);
}

.vr-lightbox__img {
	display: block;
	max-width: 90vw;
	max-height: 82vh;
	object-fit: contain;
	border-radius: 4px;
	box-shadow:
		0 0 0 1px rgba(255,255,255,0.07),
		0 24px 80px rgba(0,0,0,0.9);
	image-rendering: auto;
}

@media (max-width: 767px) {
	.vr-lightbox__img { max-width: 95vw; max-height: 78vh; }
}

.vr-lightbox__caption {
	margin: 0;
	color: rgba(255,255,255,0.60);
	font-size: 0.875rem;
	text-align: center;
	max-width: 68ch;
	line-height: 1.6;
	letter-spacing: 0.015em;
}

/* ---------- Close button ---------- */
.vr-lightbox__close {
	position: absolute;
	top: -50px;
	right: 0;
	width: 40px;
	height: 40px;
	border: none;
	cursor: pointer;
	color: #fff;
	padding: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.18s, background 0.18s;
}
.vr-lightbox__close--circle {
	background: rgba(255,255,255,0.12);
	border-radius: 50%;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
.vr-lightbox__close--x-only { background: transparent; }
.vr-lightbox__close:hover   { transform: scale(1.14); background: rgba(255,255,255,0.22); }
.vr-lightbox__close svg     { width: 100%; height: 100%; }

/* ---------- Build progress indicator ---------- */
.vr-build-hint {
	position: absolute;
	bottom: 14px;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255,255,255,0.35);
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	pointer-events: none;
	transition: opacity 0.6s;
}
.vr-build-hint--hidden { opacity: 0; }
