#modalBg{
    width: 100vw;
    height: 100vh;
    z-index: 100;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

#modalBg>div:first-child{
    width: 2rem;
    height: 2rem;
    position: absolute;
    top: 1rem;
    right: 10rem;
    overflow: hidden;
    border-radius: 2rem;
    filter: none;
}

#modalBg>div:first-child:hover{
    filter: drop-shadow(1px 1px 5px white);
    transition: filter .5s ease-in-out;
}

#modalBg>div:first-child>svg{
    width: 95%;
    height: 95%;
}

#modalBg>div:first-child>svg>path{
    fill: white;
}

.closeModalBg{
    display: none !important;
}

#modalBg>div:last-child{
   width: 50%;
   height: 95%;
}

#modalBg>div:last-child>a{
    width: 100%;
    height: 100%;
}

#modalBg>div:last-child>a>img{
    object-fit: contain;
    width: 100%;
    height: 99%;
 }

 @media (max-width: 900px) /* and (max-width:1024px) */{
    #modalBg{
        flex-direction: column;
        justify-content: flex-start;
    }

    #modalBg>div:first-child{
        position: unset;
        top: unset;
        right: unset;
        margin-top: 5rem;
    }


    #modalBg>div:last-child{
        width: 100%;
        height: unset;
        margin-top: 2rem;
    }
}