/**
 * The Gallery 2026 — front-end styles.
 */

.gallery2026-root {
	position: relative;
	width: 100%;
	min-height: 420px;
	overflow: hidden;
	background: #0b0e14;
	border-radius: 4px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	touch-action: none;
}

.gallery2026-root canvas {
	display: block;
	width: 100%;
	height: 100%;
}

/* ---- Entrance / loading overlay ---- */
.gallery2026-overlay {
	position: absolute;
	inset: 0;
	z-index: 40;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #ece7dc;
	background:
		radial-gradient(ellipse at 50% 35%, rgba(84, 96, 120, 0.55), transparent 65%),
		linear-gradient(180deg, #141821 0%, #0b0e14 100%);
	transition: opacity 0.9s ease;
}

.gallery2026-overlay.hidden {
	opacity: 0;
	pointer-events: none;
}

.gallery2026-overlay-inner {
	max-width: 30em;
	padding: 2rem;
}

.gallery2026-title {
	margin: 0 0 0.6em;
	font-size: clamp(1.6rem, 4vw, 2.6rem);
	font-weight: 300;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.gallery2026-intro {
	margin: 0 0 2em;
	font-size: 0.95rem;
	line-height: 1.6;
	color: #b9b2a4;
}

.gallery2026-spinner {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-bottom: 2em;
}

.gallery2026-spinner span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #c8b98a;
	animation: gallery2026-pulse 1.2s infinite ease-in-out;
}

.gallery2026-spinner span:nth-child(2) { animation-delay: 0.15s; }
.gallery2026-spinner span:nth-child(3) { animation-delay: 0.3s; }

@keyframes gallery2026-pulse {
	0%, 100% { opacity: 0.25; transform: scale(0.85); }
	50% { opacity: 1; transform: scale(1); }
}

.gallery2026-enter {
	padding: 0.85em 2.4em;
	font-size: 0.85rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #ece7dc;
	background: transparent;
	border: 1px solid #c8b98a;
	border-radius: 2px;
	cursor: pointer;
	transition: background 0.25s, color 0.25s;
}

.gallery2026-enter:hover:not(:disabled) {
	background: #c8b98a;
	color: #141821;
}

.gallery2026-enter:disabled {
	opacity: 0.45;
	cursor: wait;
}

/* ---- Walking speed selector (overlay) ---- */
.gallery2026-speed {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 1.6em;
}

.gallery2026-speed-label {
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #8d8676;
	margin-right: 4px;
}

.gallery2026-speed-btn {
	padding: 0.45em 1.1em;
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	color: #b9b2a4;
	background: transparent;
	border: 1px solid rgba(200, 185, 138, 0.4);
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.gallery2026-speed-btn:hover {
	color: #ece7dc;
	border-color: #c8b98a;
}

.gallery2026-speed-btn.is-active {
	color: #141821;
	background: #c8b98a;
	border-color: #c8b98a;
}

/* ---- Top-right controls ---- */
.gallery2026-controls {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 30;
	display: flex;
	gap: 8px;
}

.gallery2026-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	color: #e8e2d4;
	background: rgba(16, 18, 24, 0.55);
	border: 1px solid rgba(232, 226, 212, 0.25);
	border-radius: 50%;
	cursor: pointer;
	backdrop-filter: blur(6px);
	transition: background 0.2s, border-color 0.2s;
}

.gallery2026-btn:hover {
	background: rgba(60, 64, 76, 0.75);
	border-color: rgba(232, 226, 212, 0.55);
}

.gallery2026-btn.is-active {
	color: #141821;
	background: #c8b98a;
	border-color: #c8b98a;
}

/* ---- In-gallery speed selector ---- */
.gallery2026-speedbar {
	display: flex;
	align-items: center;
	gap: 3px;
	padding: 3px 8px 3px 10px;
	background: rgba(16, 18, 24, 0.55);
	border: 1px solid rgba(232, 226, 212, 0.25);
	border-radius: 999px;
	backdrop-filter: blur(6px);
}

.gallery2026-speedbar-label {
	font-size: 0.62rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #b9b2a4;
}

.gallery2026-speedbar .gallery2026-speed-btn {
	padding: 0.28em 0.7em;
	font-size: 0.68rem;
	border: none;
	border-radius: 999px;
}

/* ---- Audio player ---- */
.gallery2026-audio {
	position: absolute;
	left: 12px;
	top: 12px;
	z-index: 30;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px 6px 6px;
	background: rgba(16, 18, 24, 0.55);
	border: 1px solid rgba(232, 226, 212, 0.25);
	border-radius: 999px;
	backdrop-filter: blur(6px);
}

.gallery2026-audio-volume {
	width: 84px;
	accent-color: #c8b98a;
	cursor: pointer;
}

.gallery2026-audio-status {
	max-width: 220px;
	font-size: 0.68rem;
	color: #b9b2a4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media (max-width: 768px) {
	.gallery2026-audio-volume { width: 60px; }
	.gallery2026-audio-status { display: none; }
}

.gallery2026-root.is-fullscreen {
	border-radius: 0;
}

/* ---- Navigation hint ---- */
.gallery2026-hint {
	position: absolute;
	left: 50%;
	bottom: 16px;
	transform: translateX(-50%);
	z-index: 20;
	max-width: 86%;
	padding: 0.5em 1.1em;
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	color: #ddd6c6;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	background: rgba(16, 18, 24, 0.5);
	border-radius: 999px;
	backdrop-filter: blur(6px);
	transition: opacity 1.2s;
	pointer-events: none;
}

.gallery2026-hint.fade {
	opacity: 0;
}

/* ---- Mobile joystick ---- */
.gallery2026-joystick {
	position: absolute;
	left: 22px;
	bottom: 26px;
	z-index: 25;
	display: none;
	width: 108px;
	height: 108px;
	border-radius: 50%;
	background: rgba(20, 22, 30, 0.35);
	border: 1px solid rgba(232, 226, 212, 0.3);
	backdrop-filter: blur(4px);
	touch-action: none;
}

.gallery2026-joystick-knob {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 46px;
	height: 46px;
	margin: -23px 0 0 -23px;
	border-radius: 50%;
	background: rgba(232, 226, 212, 0.55);
}

@media (pointer: coarse) {
	.gallery2026-joystick { display: block; }
}

/* ---- Artwork info panel ---- */
.gallery2026-panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 35;
	width: 33%;
	min-width: 300px;
	max-width: 520px;
	color: #26241f;
	background: rgba(250, 248, 243, 0.97);
	box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
	transform: translateX(102%);
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
	display: flex;
	flex-direction: column;
}

.gallery2026-panel.open {
	transform: translateX(0);
}

.gallery2026-panel-close {
	position: absolute;
	top: 10px;
	right: 12px;
	z-index: 2;
	width: 36px;
	height: 36px;
	font-size: 1.5rem;
	line-height: 1;
	color: #55524a;
	background: rgba(255, 255, 255, 0.8);
	border: none;
	border-radius: 50%;
	cursor: pointer;
}

.gallery2026-panel-scroll {
	height: 100%;
	overflow-y: auto;
	padding: 26px 26px 34px;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.gallery2026-panel-img {
	display: block;
	width: 100%;
	height: auto;
	margin-bottom: 18px;
	border-radius: 2px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.gallery2026-panel-title {
	margin: 0 0 4px;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
}

.gallery2026-panel-meta {
	margin: 0 0 14px;
	font-size: 0.78rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #8d8676;
}

.gallery2026-panel-caption {
	margin: 0 0 14px;
	font-style: italic;
	font-size: 0.9rem;
	color: #5c574c;
}

.gallery2026-panel-content {
	font-size: 0.92rem;
	line-height: 1.65;
}

.gallery2026-panel-content img {
	max-width: 100%;
	height: auto;
}

.gallery2026-panel-link {
	display: inline-block;
	margin-top: 18px;
	padding: 0.6em 1.4em;
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	color: #faf8f3;
	background: #33302a;
	border-radius: 2px;
	transition: background 0.2s;
}

.gallery2026-panel-link:hover {
	background: #55503f;
}

/* ---- Mobile adaptations ---- */
@media (max-width: 768px) {
	.gallery2026-panel {
		top: auto;
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		max-width: none;
		min-width: 0;
		height: 58%;
		border-radius: 14px 14px 0 0;
		box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
		transform: translateY(103%);
	}

	.gallery2026-panel.open {
		transform: translateY(0);
	}

	.gallery2026-hint {
		font-size: 0.68rem;
		bottom: 148px;
	}
}
@media (max-width: 768px) {
	.gallery2026-root .gallery2026-audio {
		top: auto;
		left: auto;
		right: 12px;
		bottom: 12px;
		z-index: 20;
	}

	/* Keep volume slider compact on narrow screens */
	.gallery2026-root .gallery2026-audio-volume {
		width: 56px;
	}
}
