/* 专门给博客文章（post 页面）用的图片放大样式 */

/* 覆盖文章中的图片光标，让用户知道可以点击放大 */
.article-body img {
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-body img:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

/* 全屏遮罩层 */
.post-lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.post-lightbox-backdrop.is-active {
  display: flex;
}

/* 大图容器：居中显示，带轻微圆角和阴影 */
.post-lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-lightbox-image {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  object-fit: contain;
}

/* 关闭按钮（右上角） */
.post-lightbox-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 0;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.post-lightbox-close:hover {
  background: rgba(15, 23, 42, 1);
}

/* 移动端优化：更紧凑一些，并允许上下滑动查看大图 */
@media (max-width: 768px) {
  .post-lightbox-inner {
    max-width: 92vw;
    max-height: 92vh;
  }

  .post-lightbox-backdrop {
    padding: 0 8px;
  }

  .post-lightbox-image {
    border-radius: 8px;
  }

  .post-lightbox-close {
    top: 8px;
    right: 8px;
  }
}

