﻿.md-content img {
    max-width: 500px;
    height: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: zoom-in;
    transition: transform 0.2s, box-shadow 0.2s;
}
.md-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
[data-md-color-scheme="slate"] .md-content img {
    border-color: #374151;
}
#img-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
#img-lightbox.active {
    opacity: 1;
    visibility: visible;
}
.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    cursor: zoom-out;
}
.lightbox-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 24px;
}
.lightbox-img {
    max-width: 95% !important;
    max-height: 92vh !important;
    width: auto !important;
    height: auto !important;
    border: none !important;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6) !important;
    cursor: default !important;
    transform: none !important;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    font-size: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}
