/* Click-to-enlarge (see openvcad_lightbox.js) */
#main-content img {
    cursor: zoom-in;
}

#main-content img[data-no-lightbox] {
    cursor: default;
}

.openvcad-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem 3rem;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.88);
}

.openvcad-lightbox-inner {
    position: relative;
    max-width: 96vw;
    max-height: 92vh;
    margin: auto;
    /* Opaque backing for PNGs with transparency (no page/overlay bleed-through). */
    background: #fff;
}

.openvcad-lightbox-image {
    display: block;
    max-width: 96vw;
    max-height: 92vh;
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    background-color: #fff;
}

.openvcad-lightbox-close {
    position: fixed;
    top: 0.75rem;
    right: 1rem;
    z-index: 10001;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.openvcad-lightbox-close:hover,
.openvcad-lightbox-close:focus {
    background: rgba(255, 255, 255, 0.22);
    outline: 2px solid #2980b9;
}
