* {
    box-sizing: border-box;
}

#lightboxContainer {
    width: 100vw;
    height: 100vh;
    position: fixed;
    left: 0px;
    top: 0px;
    padding: 24px;
    display: none;
    justify-content: center;
    align-items: center;
}

#lightboxBackground {
    background: radial-gradient(rgba(0,0,0,0.5), black);
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#lightbox {
    background-color: white;
    border: 15px ridge #7e005e;
    box-shadow: 
        0 0 15px 7.5px #ecc09d1a;
    width: auto;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 5;
}

#lightboxCloser {
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    position: absolute;
    font-size: 40px;
    top: 10px;
    right: 40px;
    z-index: 10;
    transition: .5s ease-in-out;
}

#lightboxCloser:hover {
    color: white;
}

#lightboxContainer.display {
    display: flex;
}

@media screen and (max-width: 800px) {
    #lightboxContainer {
        padding: 12px;
    }

    #lightbox {
        border: 12px solid white;
        width: 80%;
        height: auto;
    }
}