.zoom-image {
    cursor: pointer;
}

.zoom-dialog-backdrop {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.1);
    animation: zoom-show-backdrop 0.4s both ease;
    z-index: 100;
}

.zoom-dialog {
    position: absolute;
    border: 4px solid #fff;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    animation: zoom-show-dialog 0.4s both ease;
}

.zoom-dialog-image {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 3px;
}

.zoom-dialog-close {
    position: absolute;
    top: -24px;
    right: -4px;
    width: 16px;
    height: 16px;
    background: url(images/close.svg) center no-repeat;
    background-size: 16px 16px;
    cursor: pointer;
    filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.6));
    -webkit-filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.6));
}

.zoom-dialog-backdrop.zoom-dialog-closing {
    animation: zoom-hide-backdrop 0.4s both ease;
}

.zoom-dialog.zoom-dialog-closing {
    animation: zoom-hide-dialog 0.4s both ease;
}

@keyframes zoom-show-backdrop {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoom-hide-backdrop {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes zoom-show-dialog {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes zoom-hide-dialog {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}