/* The enlarged view for docs/assets/lightbox.js. */

main img.enlargeable {
    cursor: zoom-in;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    cursor: zoom-out;
}

.lightbox[hidden] {
    display: none;
}

/* As large as the window allows, and never past the image's own size. */
.lightbox img {
    max-width: 96vw;
    max-height: 96vh;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.6);
}
