/*
 * Stone Lightbox
 * 文章/页面内容图片灯箱样式
 */

/* ---------- 正文可点击图片的悬停提示 ---------- */
/* 包裹任意可放大图片（链接图 / 裸图）……细节见 lightbox.js。
   此容器即放大镜徽标的定位基准。 */
.entry-content .stone-img-zoom, .stonedb-article .stone-img-zoom {
	position: relative;
	display: inline-block;
	line-height: 0;
}

.entry-content .stone-img-zoom img, .stonedb-article .stone-img-zoom img {
	display: block;
	transition: transform 0.25s ease;
}

.entry-content .stone-img-zoom:hover img, .stonedb-article .stone-img-zoom:hover img {
	transform: scale(1.04);
}

/* 可点击提示：鼠标变为小手 */
.entry-content .stone-img-zoom, .stonedb-article .stone-img-zoom {
	cursor: pointer;
}

/* 右下角放大镜徽标（镜面 + 放大镜柄 + 内部 + 号） */
.entry-content .stone-img-zoom__badge, .stonedb-article .stone-img-zoom__badge {
	position: absolute;
	right: 8px;
	bottom: 8px;
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(15, 18, 24, 0.55);
	color: #fff;
	border-radius: 50%;
	pointer-events: none; /* 点击穿透，交给图片本身放大 */
	backdrop-filter: blur(1px);
}

.entry-content .stone-img-zoom__badge svg, .stonedb-article .stone-img-zoom__badge svg {
	display: block;
}

.stone-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px 56px 56px;
	background: rgba(10, 12, 16, 0.92);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.stone-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.stone-lightbox img.stone-lightbox-image {
	max-width: 92vw;
	max-height: calc(92vh - 64px);
	width: auto;
	height: auto;
	border-radius: 4px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
	transform: scale(0.96);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.stone-lightbox.is-open img.stone-lightbox-image {
	transform: scale(1);
}

.stone-lightbox.is-loading img.stone-lightbox-image {
	opacity: 0.3;
}

.stone-lightbox-figcaption {
	margin-top: 14px;
	color: #d7dce2;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
	max-width: 80vw;
}

.stone-lightbox-close,
.stone-lightbox-prev,
.stone-lightbox-next {
	position: absolute;
	border: 0;
	cursor: pointer;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	line-height: 1;
	border-radius: 50%;
	transition: background 0.2s ease;
}

.stone-lightbox-close:hover,
.stone-lightbox-prev:hover,
.stone-lightbox-next:hover {
	background: rgba(255, 255, 255, 0.22);
}

.stone-lightbox-close {
	top: 16px;
	right: 16px;
	width: 40px;
	height: 40px;
	font-size: 20px;
}

.stone-lightbox-prev,
.stone-lightbox-next {
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	font-size: 22px;
}

.stone-lightbox-prev {
	left: 12px;
}

.stone-lightbox-next {
	right: 12px;
}

.stone-lightbox-counter {
	position: absolute;
	bottom: 18px;
	left: 50%;
	transform: translateX(-50%);
	color: #aab2bc;
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}

.stone-lightbox.is-single .stone-lightbox-prev,
.stone-lightbox.is-single .stone-lightbox-next {
	display: none;
}

@media (max-width: 600px) {
	.stone-lightbox {
		padding: 16px;
	}

	.stone-lightbox-prev {
		left: 4px;
	}

	.stone-lightbox-next {
		right: 4px;
	}
}
