#mosaico2x2-lightbox {
    position: fixed;
    inset: 0;

    display: none;

    width: 100vw;
    height: 100vh;

    background: #000;

    overflow: hidden;

    z-index: 300000;
}

#mosaico2x2-lightbox.active {
    display: block;
}

.mosaico2x2-header {
    position: absolute;

    top: 0;
    left: 0;
    right: 0;

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

    box-sizing: border-box;

    padding: 8px 12px;

    font-family: monospace;
    font-size: 12px;

    color: #fff;

    z-index: 10;

    pointer-events: none;
}

.mosaico2x2-header button {
    border: 0;
    padding: 0;

    background: transparent;
    color: #fff;

    font-family: monospace;
    font-size: 12px;

    cursor: pointer;

    pointer-events: auto;
}

#mosaico2x2-content {
    position: absolute;
    inset: 0;

    display: grid;

    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);

    gap: 0;

    width: 100%;
    height: 100%;
}

.mosaico2x2-celula {
    position: relative;

    min-width: 0;
    min-height: 0;

    overflow: hidden;
}

.mosaico2x2-celula img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    opacity: 0;

    transition: opacity .5s ease;

    -webkit-user-drag: none;
    user-select: none;
}

.mosaico2x2-celula img.visivel {
    opacity: 1;
}