/* 公共图片灯箱：全屏居中（勿被业务页残留的 left/top/transform 带偏） */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10050;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.88);
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.image-modal.show,
.image-modal.is-open {
    display: flex !important;
}

.image-modal-content {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    max-width: 90vw;
    max-height: 85vh;
    margin: 0;
    text-align: center;
    cursor: default;
}

.image-modal-content img,
#modalImage {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.image-modal-info {
    margin-top: 12px;
    color: #fff;
    font-size: 14px;
    text-align: center;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 28px;
    color: #fff;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10051;
    line-height: 1;
}

.image-modal-close:hover {
    color: #ddd;
}

.image-modal-prev,
.image-modal-next {
    position: absolute;
    top: 50%;
    left: auto;
    right: auto;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10051;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.image-modal-prev { left: 20px; }
.image-modal-next { right: 20px; }

.image-modal-prev:hover,
.image-modal-next:hover {
    background: rgba(255, 255, 255, 0.28);
}

@media (max-width: 768px) {
    .image-modal-prev,
    .image-modal-next {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
}
