.lightbox {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%;
    height:100%;

    pointer-events: none;
    opacity: 0;
}

.lightbox.active {
    opacity: 1;
    pointer-events: initial;
    transition: ease-in 0.3s;
}

.lightbox_content {
    position: absolute;
    top: 50%; 
    left: 50%; 

    max-height: calc(100% - 2em);
    max-width: calc(100% - 2em);

    transform: translate(-50%, -50%);
}

.lightbox_back {
    transition: ease-in 2s;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-image: url('../imgs/background_web.jpg');
    cursor: pointer;
}

.lightbox_back:hover{
    transition: ease-out 3s;
    background-color: rgba(13, 6, 17, 0.2);

}

.lightbox_content img {

    width: 110%;
    height: 110%;

}

.lightbox_content::after{
    content: '\000D7';

    position: absolute;

    top:0em;
    right: -8em;

    width: 2em;
    height: 2em;

    line-height: 2em;
    text-align: center;

    background-color: white;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 20);

    border-radius: 1em;
    pointer-events: none;

}

@media (max-width: 780px) {

.lightbox_back {
    transition: ease-in 1s;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

    .lightbox_content {
        width: 80vw;
        max-width: 100vw;
        max-height: 100vh;
    }


}