/**
 * Style of modal slider
 */

 .div_modal_img {
    margin: auto;
    max-height: 96vh;
    max-width: 85vw;
    width: 100%;
    overflow: hidden;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}
.div_modal_img.height {
    height: 100%;
}
.div_modal_img picture {
    margin: 0 auto;
    max-height: 84vh;
    max-width: 80vw;
    overflow: hidden;
}
.img-modal-content {
    margin: auto;
    background-color: #fff;
    padding: 0;
    outline: 0;
    max-width: 600px;
    width: 100%;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}
.img-modal {
    z-index: 3;
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: white;
}
.img-modal img {
    -o-object-fit: contain;
       object-fit: contain;
    display: block;
    margin: 0 auto;
    z-index: 10;
    max-height: 100vh;
}
.img-animate-zoom {
    -webkit-animation: animatezoom 0.6s;
            animation: animatezoom 0.6s
}
/* FULLSCREEN */
.div_modal_img.fullscreen_div_img,
.div_modal_img picture {
    max-height: 100vh;
    max-width: 100vw;
}
@-webkit-keyframes animatezoom {
    from {
        -webkit-transform: scale(0);
                transform: scale(0)
    }
    to {
        -webkit-transform: scale(1);
                transform: scale(1)
    }
}
@keyframes animatezoom {
    from {
        -webkit-transform: scale(0);
                transform: scale(0)
    }
    to {
        -webkit-transform: scale(1);
                transform: scale(1)
    }
}
/* RESPONSIVE */
@media screen and (max-width: 480px) {
    .img-modal-content {
        margin: auto;
    }
    .img-modal-content.fullscreen_modal {
        margin: 0;
        width: 100%;
    }
}