/* 图片点击放大 —— 配套 img-zoom.js */

/* 可点击的图片：加放大镜光标与轻微反馈 */
.img-zoom-ready {
  cursor: zoom-in;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.img-zoom-ready:hover {
  opacity: 0.92;
}
.img-zoom-ready:active {
  transform: scale(0.995);
}

/* 点击放大后的浮层 */
.img-zoom-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  padding: 24px;
  box-sizing: border-box;
  overflow: auto;
  -webkit-overflow-scrolling: touch;

  /* 用 flex 让图片居中；长图可滚动查看 */
  align-items: flex-start;
  justify-content: center;
}
.img-zoom-overlay.is-open {
  display: flex;
}

.img-zoom-overlay > img {
  max-width: 100%;
  height: auto;
  margin: auto;             /* 配合 flex 实现两轴居中 */
  border-radius: 4px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
  cursor: zoom-out;
}

/* 关闭按钮 */
.img-zoom-close {
  position: fixed;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 10000;
  transition: background 0.15s ease;
}
.img-zoom-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* 移动端：减小留白 */
@media screen and (max-width: 768px) {
  .img-zoom-overlay {
    padding: 12px;
  }
  .img-zoom-close {
    top: 10px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
}
