.hystmodal__opened {
    position: fixed;
    right: 0;
    left: 0;
    overflow: hidden;
}

.hystmodal__shadow {
    position: fixed;
    border: none;
    display: block;
    width: 100%;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 98;
    opacity: 0;
    transition: opacity 0.15s ease;
    background-color: black;
}

.hystmodal__shadow--show {
    pointer-events: auto;
    opacity: 0.6;
}

.hystmodal {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    overflow: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 1;
    pointer-events: none;
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    z-index: 99;
    visibility: hidden;
}

.hystmodal--active {
    opacity: 1;
}

.hystmodal--moved,
.hystmodal--active {
    pointer-events: auto;
    visibility: visible;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.hystmodal__wrap {
    overflow: hidden;
    flex-shrink: 0;
    flex-grow: 0;
    margin: 0 auto;
    width: 80vw;
    height: 100vh;
}

.hystmodal__window {
    background: transparent;
    width: 80vw;
    margin: 0 auto;
    overflow: visible;
    transition: transform 0.2s ease 0s, opacity 0.2s ease 0s;
    transform: scale(.8);
    opacity: 0;
}

.hystmodal--active .hystmodal__window {
    transform: scale(1);
    opacity: 1;
}

.hystmodal__close {
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    display: block;
    width: 100vw;
    height: 100vh;
    background-color: transparent;
    cursor: url("../../img/system/cursor__zoom__out2.svg"), pointer;
}