/* ============================================================
   MosaicFall28 – Stylesheet
   ============================================================ */

.mosaic-fall-28-wrapper {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #000;
	cursor: pointer;
	-webkit-user-select: none;
	user-select: none;
}

.mf28-canvas {
	display: block;
	width: 100%;
	height: 100%;
	outline: none;
}

/* ── Lightbox ──────────────────────────────────────────────── */
.mf28-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.35s ease;
}

.mf28-lightbox.is-open {
	opacity: 1;
	pointer-events: all;
}

.mf28-lightbox-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.88);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.mf28-lightbox-inner {
	position: relative;
	z-index: 1;
	max-width: 90vw;
	max-height: 90vh;
	transform: scale(0.88);
	transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mf28-lightbox.is-open .mf28-lightbox-inner {
	transform: scale(1);
}

.mf28-lightbox-img {
	display: block;
	max-width: 90vw;
	max-height: 85vh;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

.mf28-lightbox-close {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background: #fff;
	color: #111;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(0,0,0,0.4);
	transition: background 0.2s, transform 0.2s;
}

.mf28-lightbox-close:hover {
	background: #eee;
	transform: scale(1.1);
}

/* ── Loading spinner (shown before Three.js initialises) ─── */
.mf28-loading-spinner {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #111;
	z-index: 10;
}

.mf28-loading-spinner::after {
	content: '';
	width: 40px;
	height: 40px;
	border: 3px solid rgba(255,255,255,0.15);
	border-top-color: #fff;
	border-radius: 50%;
	animation: mf28-spin 0.8s linear infinite;
}

@keyframes mf28-spin {
	to { transform: rotate(360deg); }
}
