/* ── TM3D Kaleidoscope67 ───────────────────────────────────────────────── */

.tm3d-k67-wrapper {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #000;
	cursor: grab;
	border-radius: 4px;
	touch-action: none;
	-webkit-user-select: none;
	user-select: none;
}
.tm3d-k67-wrapper:active { cursor: grabbing; }

.tm3d-k67-canvas {
	display: block;
	width: 100%;
	height: 100%;
}

/* ── Hint bar ── */
.tm3d-k67-hint {
	position: absolute;
	bottom: 52px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 18px;
	color: rgba(255,255,255,.55);
	font-family: monospace;
	font-size: 11px;
	letter-spacing: .06em;
	pointer-events: none;
	white-space: nowrap;
	transition: opacity .4s;
}
.tm3d-k67-wrapper:hover .tm3d-k67-hint { opacity: 0; }

/* ── Nav ── */
.tm3d-k67-nav {
	position: absolute;
	bottom: 14px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 12px;
}

.tm3d-k67-prev,
.tm3d-k67-next {
	background: rgba(255,255,255,.15);
	border: 1px solid rgba(255,255,255,.3);
	color: #fff;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s;
	line-height: 1;
	padding: 0;
}
.tm3d-k67-prev:hover,
.tm3d-k67-next:hover { background: rgba(255,255,255,.3); }

.tm3d-k67-dots { display: flex; gap: 7px; }
.tm3d-k67-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: rgba(255,255,255,.35);
	cursor: pointer;
	transition: background .25s, transform .25s;
}
.tm3d-k67-dot.active {
	background: #fff;
	transform: scale(1.3);
}

/* ── Lightbox ── */
.tm3d-k67-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity .35s;
}
.tm3d-k67-lightbox.open {
	opacity: 1;
	pointer-events: all;
}
.tm3d-k67-lb-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.88);
	cursor: pointer;
	backdrop-filter: blur(8px);
}
.tm3d-k67-lb-inner {
	position: relative;
	z-index: 1;
	max-width: 90vw;
	max-height: 90vh;
	display: flex;
	align-items: center;
	justify-content: center;
}
.tm3d-k67-lb-img {
	max-width: 90vw;
	max-height: 88vh;
	object-fit: contain;
	border-radius: 6px;
	box-shadow: 0 0 60px rgba(0,0,0,.8);
	transform: scale(.85);
	transition: transform .35s cubic-bezier(.17,.84,.44,1);
}
.tm3d-k67-lightbox.open .tm3d-k67-lb-img { transform: scale(1); }

.tm3d-k67-lb-close {
	position: absolute;
	top: -40px;
	right: -4px;
	background: rgba(255,255,255,.15);
	border: 1px solid rgba(255,255,255,.3);
	color: #fff;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s;
	padding: 0;
	line-height: 1;
}
.tm3d-k67-lb-close:hover { background: rgba(255,255,255,.35); }

/* ── Mobile ── */
@media (max-width: 600px) {
	.tm3d-k67-hint { font-size: 9px; gap: 10px; }
	.tm3d-k67-prev,
	.tm3d-k67-next { width: 26px; height: 26px; font-size: 12px; }
}
