﻿.zoom-image {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

    .zoom-image .zoom-overlay {
        width: 100%;
        height: 100%;
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        background: #000;
        opacity: 0.5;
        animation-name: fade-zoom-overlay;
        animation-timing-function: ease;
        animation-duration: 1s;
    }

    .zoom-image .zoom-wrapper {
        z-index: 1000;
        width: 100%;
        height: 100%;
        position: absolute;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        __align-content: center;
    }

    .zoom-image .zoom-img-container {
        /*border-radius: 5px;
        animation-name: scale-zoom-image;
        animation-timing-function: ease;
        animation-duration: 0.2s;
        position: relative;
        margin: auto;*/
        
        /*top: 1%;*/
        border-radius: 5px;
        animation-name: scale-zoom-image;
        animation-timing-function: ease;
        animation-duration: 0.2s;
        position: relative;
        margin: auto;
        max-height: 90%;
        height: -webkit-fill-available;
    }

    .zoom-image .zoom-img {
        box-shadow: 0 8px 20px 0 rgba(0,0,0,0.3), 0 10px 50px 0 rgba(0,0,0,0.2);
        max-width: 100%;
        max-height:100%;
        border-radius: 5px;
    }

.zoom-image .zoom-close {
    width: 40px;
    height: 40px;
    z-index: 999;
    cursor: pointer;
    position: absolute;
    top: -40px;
    right: 0;
    display:none;
}
[onclick^="zoomImage"]{
    cursor:pointer;
}
    .zoom-image .zoom-close img {
        width: 40px;
        height: 40px;
    }

@keyframes scale-zoom-image {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(100%);
    }
}

@keyframes fade-zoom-overlay {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 0.5;
    }
}
