/* 图片悬停放大功能样式 */

/* 悬停时的图片效果 */
img.postimage.zoomable {
    cursor: zoom-in;
    transform: scale(1.05);
    transition: transform 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* 放大图片遮罩层 */
.zoomed-image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    cursor: zoom-out;
}

/* 放大的图片 */
.zoomed-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border: 2px solid white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* 关闭按钮 */
.zoomed-image-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.zoomed-image-close:hover {
    background-color: rgba(255, 0, 0, 0.7);
}