/* ==========================================================================
   Aurora Star 图片灯箱（点击放大/缩放）
   ========================================================================== */

.aurora-star-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: rgba(0, 0, 0, 0.88);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s;
}

.aurora-star-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.aurora-star-lightbox__close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 10;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.3);
	background: rgba(0, 0, 0, 0.4);
	color: #fff;
	font-size: 1.2em;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, transform 0.2s ease;
}

.aurora-star-lightbox__close:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: scale(1.08);
}

.aurora-star-lightbox__stage {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px;
	overflow: hidden;
}

.aurora-star-lightbox__img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	user-select: none;
	cursor: grab;
	transform-origin: center center;
	transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
	border-radius: 4px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.aurora-star-lightbox__img.is-dragging {
	cursor: grabbing;
	transition: none;
}

.aurora-star-lightbox__caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	text-align: center;
	padding: 14px 24px;
	color: #e5e7eb;
	font-size: 0.9em;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
	pointer-events: none;
}

/* 工具栏 */
.aurora-star-lightbox__toolbar {
	position: absolute;
	bottom: 48px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	padding: 8px 12px;
	background: rgba(0, 0, 0, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 999px;
	backdrop-filter: blur(6px);
}

.aurora-star-lightbox__btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	background: transparent;
	color: #fff;
	font-size: 1em;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.aurora-star-lightbox__btn:hover {
	background: rgba(255, 255, 255, 0.18);
}

.aurora-star-lightbox__btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.aurora-star-lightbox__zoom-level {
	min-width: 52px;
	text-align: center;
	color: #fff;
	font-size: 0.82em;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-variant-numeric: tabular-nums;
}

/* 键盘提示 */
.aurora-star-lightbox__hint {
	position: absolute;
	top: 16px;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.8em;
	background: rgba(0, 0, 0, 0.35);
	padding: 6px 14px;
	border-radius: 999px;
	pointer-events: none;
}

@media (max-width: 768px) {
	.aurora-star-lightbox__toolbar {
		bottom: 32px;
	}

	.aurora-star-lightbox__stage {
		padding: 12px;
	}

	.aurora-star-lightbox__hint {
		display: none;
	}
}
