/**
 * 正文图片灯箱。配套 assets/front/lightbox.js。
 */
.wpnav-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000; /* 要盖过详情页吸顶条(很高)和顶部菜单栏 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: rgba(0, 0, 0, .82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
.wpnav-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}
.wpnav-lightbox img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
    transform: scale(.96);
    transition: transform .25s ease;
}
.wpnav-lightbox.is-open img { transform: scale(1); }

.wpnav-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
    transition: background .2s ease;
}
.wpnav-lightbox-close:hover { background: rgba(255, 255, 255, .25); }

/* 正文里的图片给个"可以点"的提示 */
.wpnav-single-content img,
.wpnav-post img {
    cursor: zoom-in;
}
/* 被链接包起来的图片不接管点击（见 lightbox.js），光标也要还原成手型 */
.wpnav-single-content a img,
.wpnav-post a img {
    cursor: pointer;
}

@media (max-width: 560px) {
    .wpnav-lightbox { padding: 16px; }
    .wpnav-lightbox-close { top: 12px; right: 12px; }
}
