.mgPopup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.3);
    z-index: 1;
    overflow-x: hidden;
    overflow-y: scroll;
    text-align: center;
}

.mgPopup > div {
    position: relative;
    background-color: #FFF;
    box-sizing: border-box;
    display: inline-block;
    text-align: initial;
}

.mgPopup > div.fullscreen {
    display: block;
    padding: 0;
    margin: 0;
    max-width: 100%;
    min-height: 100%;
    width: 100vw;
    height: 100vh;
}

.mgPopup > div.fullscreen iframe {
    box-sizing: border-box;
    width: 100%;
    height: 100vh;
}

.mgPopup > div.right {
    position: fixed;
    top: 0;
    bottom: 0;
    /*width: min(100%, 400px);*/
    overflow-x: hidden;
    overflow-y: scroll;
    /*transition: right 1s ease;*/
}

/* close */
.mgPopup div.mgClose {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.mgPopup div.mgClose hr {
    position: absolute;
    top: 11px;
    left: 8px;
    border: none;
    width: 24px;
    height: 1px;
    background-color: #8e8e8e;
}

.mgPopup div.mgClose hr:first-child { transform: rotate(45deg); }

.mgPopup div.mgClose hr:last-child { transform: rotate(-45deg); }

.mgPopup div.mgClose:hover hr { background-color: #000; }

@media (min-width: 800px) {
    .mgPopup > div.center { margin: 50px 0; }
}

/*.mgPopup .fullscreen .mgClose:hover hr { background-color: #FFF; }*/
/* *** */

/* tablet & desktop */
/*@media all and (min-width: 801px) {
    .mgPopup > div {
        margin: 40px;
        border-radius: 5px;
    }
}*/