.modal {
    /* layout */
    display: none;
    height: 100%;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 90;
    /* content */
    background: rgba(0, 0, 0, 0.8);
}

.modal__wrapper {
    /* layout */
    left: 50%;
    padding: 1.5em;
    position: fixed;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    /* content */
    background-color: #fff;
}

.modal__show {
    display: block;
}