
.ehd-lb-overlay {
    position: fixed; inset: 0; z-index: 2147483647;
    background: rgba(0,0,0,0.92);
    display: flex; align-items: center; justify-content: center;
    animation: ehd-lb-fade .18s ease-out;
    touch-action: pan-y;
    -webkit-user-select: none; user-select: none;
}
.ehd-lb-stage {
    position: relative;
    max-width: 95vw; max-height: 92vh;
    display: flex; align-items: center; justify-content: center;
}
.ehd-lb-stage img {
    max-width: 95vw; max-height: 92vh;
    object-fit: contain;
    box-shadow: 0 12px 60px rgba(0,0,0,.5);
    border-radius: 6px;
    animation: ehd-lb-zoom .22s ease-out;
    -webkit-user-drag: none;
}
.ehd-lb-close, .ehd-lb-nav {
    position: absolute;
    border: none; cursor: pointer;
    background: rgba(255,255,255,0.18); color: #fff;
    font-family: -apple-system, system-ui, sans-serif;
    transition: background .15s;
    z-index: 2;
}
.ehd-lb-close {
    top: 18px; right: 22px;
    width: 44px; height: 44px; border-radius: 50%;
    font-size: 28px; line-height: 1;
}
.ehd-lb-close:hover { background: rgba(255,255,255,0.35); }
.ehd-lb-nav {
    top: 50%; transform: translateY(-50%);
    width: 54px; height: 84px;
    font-size: 36px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
}
.ehd-lb-nav:hover { background: rgba(255,255,255,0.35); }
.ehd-lb-prev { left: 18px; }
.ehd-lb-next { right: 18px; }
.ehd-lb-counter {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,0.85); font-size: 13px;
    font-family: -apple-system, system-ui, sans-serif;
    background: rgba(0,0,0,0.4);
    padding: 6px 14px; border-radius: 20px;
    pointer-events: none;
}
@media (max-width: 640px) {
    .ehd-lb-nav { width: 44px; height: 68px; font-size: 28px; }
    .ehd-lb-prev { left: 6px; }
    .ehd-lb-next { right: 6px; }
    .ehd-lb-close { top: 10px; right: 10px; }
}
@keyframes ehd-lb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ehd-lb-zoom { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
body.ehd-lb-lock { overflow: hidden !important; }

