.lightbox{
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px 16px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: 300ms ease;
}

.lightbox.open{
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.lightbox_mask{
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: rgba(0,0,0,0.5);
}
.lightbox_target{
    width: 1000px;
    max-width: 100%;
}

[data-lightbox]{
    cursor: pointer;
}