.xPopup {
    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;
}

.xPopup > content {
    position: relative;
    background-color: #FFF;
    box-sizing: border-box;
    display: inline-block;
    text-align: initial;
    border-radius: 5px;
}

.xPopup > content.fullscreen {
    display: block;
    padding: 0;
    margin: 0;
    max-width: 100%;
    min-height: 100%;
    width: 100vw;
    height: 100vh;
}

.xPopup > content.fullscreen iframe {
    box-sizing: border-box;
    width: 100%;
    height: 100vh;
}

.xPopup > content.right {
    position: fixed;
    top: 0;
    bottom: 0;
    /*width: min(100%, 400px);*/
    overflow-x: hidden;
    overflow-y: scroll;
    /*transition: right 1s ease;*/
}

/* close */
.xPopup > content > div.xClose {
    width: 60px;
    height: 60px;
    cursor: pointer;
    position: absolute;
    right: 5px;
    top: 0;
}

.xPopup > content > div.xClose::before,
.xPopup > content > div.xClose::after {
    content: '';
    border-top: 2px solid #8e8e8e;
    width: 25px;
    display: block;
    position: absolute;
    top: 30px;
    left: 15px;
}

.xPopup > content > div.xClose::before {
    transform: rotate(45deg);
}

.xPopup > content > div.xClose::after {
    transform: rotate(-45deg);
}

.xPopup > content > div.xClose:hover::before,
.xPopup > content > div.xClose:hover::after {
    border-color: #000;
}

/* Tablet & Desktop */
@media (min-width: 800px) {
    .xPopup > content.center {
        margin: 50px 0;
    }

    .admin .xPopup > content {
        margin: 40px;
        border-radius: 5px;
    }
}


/*.xPopup .fullscreen .xClose:hover hr { background-color: #FFF; }*/
/* *** */

/* tablet & desktop */
/*@media all and (min-width: 801px) {
    .xPopup > content {
        margin: 40px;
        border-radius: 5px;
    }
}*/