*[lang^=x-late] {
    visibility: hidden;
}

.cm-fullscreen.container {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 32000;
    top: 0;
    left: 0;
}

.cm-fullscreen.background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,.5);
}

.cm-fullscreen.content {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    color: #222;
    max-width: max-content;
    box-sizing: border-box;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

.cm-fullscreen .scrollbars {
    overflow: hidden;
    background-color: white;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12),0 5px 5px -3px rgba(0,0,0,.2);
}

.cm-fullscreen .scrollbars>img {
    height: 100%;
}

.cm-fullscreen .scrollbars {
    display: block;
    height: 100%;
}

.cm-fullscreen .scrollbars.scrollbars-x {
    overflow-x: auto;
}

.cm-fullscreen .scrollbars.scrollbars-y {
    overflow-y: auto;
    max-height: 90vh;
}

.cm-fullscreen .border {
    padding: 30px;
    box-sizing: border-box;
}

.cm-fullscreen.close {
    position: absolute;
    background: transparent url(/res/js/lib/css/close.png) no-repeat left top;
    width: 30px;
    height: 30px;
    cursor: pointer;
    top: 15px;
    right: 15px;
    max-width: initial;
}

.cm-fullscreen.modal-content {
    display: grid;
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    width: 100%;
    max-width: 1200px;
}

.cm-fullscreen.prev,.cm-fullscreen.next {
    cursor: pointer;
    position: absolute;
    width: 35%;
    height: 100%;
    color: white;
    font-weight: bold;
    font-size: 20px;
    user-select: none;
}

.cm-fullscreen.next {
    right: 0;
}

.cm-fullscreen.next::before {
    content: "❯";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 24px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    line-height: 30px;
    background-color: rgb(0,0,0,0.38);
    text-align: center;
}

.cm-fullscreen.prev {
    left: 0;
}

.cm-fullscreen.prev::before {
    content: "❮";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 24px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    line-height: 30px;
    background-color: rgb(0,0,0,0.38);
    text-align: center;
}

