.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 {
    background-color: #000;
    max-width: 100%;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: unset;
}

/* 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; }

.mgPopup .fullscreen .mgClose:hover hr { background-color: #FFF; }
/* *** */

/* tablet & desktop */
@media all and (min-width: 801px) {
    .mgPopup > div {
        margin: 40px;
        border-radius: 5px;
        overflow: hidden; /* INFO: zapazwa border-radius -> .mgLoader */
    }
}