/* image-lightbox-20260721.css  点击看大图灯箱样式 */

/* 缩略图鼠标悬停提示可点击放大 */
.lightbox-img { cursor: zoom-in; }

/* 全屏遮罩 */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;               /* 高于页面所有浮层（导航 z-index 70 等） */
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .88);
  cursor: zoom-out;
  padding: 4vh 4vw;
  box-sizing: border-box;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.lightbox-overlay.open { display: flex; }

.lightbox-overlay .lightbox-img-full {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  cursor: default;
  border-radius: 6px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, .5);
}

.lightbox-overlay .lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  width: 44px;
  height: 44px;
  line-height: 40px;
  font-size: 30px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border-radius: 50%;
  cursor: pointer;
  z-index: 1;
  transition: background .2s;
}
.lightbox-overlay .lightbox-close:hover { background: rgba(255, 255, 255, .28); }

.lightbox-overlay .lightbox-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  text-align: center;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  padding: 0 6vw;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .8);
  pointer-events: none;
}

@media (max-width: 768px) {
  .lightbox-overlay .lightbox-close { top: 10px; right: 12px; }
  .lightbox-overlay .lightbox-caption { font-size: 12px; bottom: 14px; }
}
