.overlay {
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    position: fixed;
    z-index: 1500;
    display: none;
    background-color: rgba(164, 164, 164, 0);
    -webkit-transition: all 1s ease-in-out;
    -moz-transition: all 1s ease-in-out;
    -o-transition: all 1s ease-in-out;
    transition: all 1s ease-in-out;
}

.visible{
    display: flex;
    background-color: rgba(164, 164, 164,0.8);
}

.overlay_element{
    position: relative;
    z-index: 2;
    margin: auto auto;
    border-radius: 20px;
    padding:20px;
    max-width: 95%;
    max-height:80%;
    background-color: white;
    box-shadow: 0 16px 16px -10px rgb(34 47 62 / 15%), 0 0 40px 1px rgb(34 47 62 / 15%);
}

.overlay_close{
    position: absolute;
    right: 0;
    top: 0;
    height:15px;
    width:15px;
    transform: translate(50%,-50%);
    -webkit-border-radius: 25px;
    border-radius: 25px;
    text-align: center;
    padding: 10px;
    background-color: #d9d9d9;
    -webkit-transition: all .4s;
    -moz-transition: all .4s;
    -o-transition: all .4s;
    transition: all .4s;
    box-sizing: initial;
}

.overlay_close:hover{
    padding: 15px;
    background-color: #7b7a7a;
}

.overlay_inner{
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

.overlay_img{
    text-align: center;
}

.overlay_img img{
    max-width: 100%;
    height: auto;
    max-height: 640px;
}