/**
 * Kehua 图片灯箱：仅主题层叠与手势（不修改 style.css）
 * 依赖：kehua_vendor_fancybox.css（kehua 同款 Fancybox v4）
 */

.fancybox__container {
  z-index: 100050 !important;
}

/* 列表缩略图 / 宫格：进入帖子，用手形而非放大镜 */
.kehua-lightbox-thumb,
a.kehua-post-grid-cell {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a.kehua-post-grid-cell {
  text-decoration: none;
  color: inherit;
}

.kehua-page-read .kehua-article-body img:not([src*="face/arclist"]):not([src*="plugin/kehua_theme/face"]),
.kehua-page-read .kehua-post-message img:not([src*="face/arclist"]):not([src*="plugin/kehua_theme/face"]) {
  cursor: zoom-in;
}

/* 列表多图 >9：第 10 张起由隐藏 a 参与 Fancybox 分组，不占版面 */
.kehua-post-image-link--grid .kehua-post-image--grid {
  position: relative;
}

.kehua-feed-fancybox-extra {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
