.panWrapper {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    left: 0;
    top: 0;
    display: none;
    cursor: move;
}

.panWrapper * {
    -moz-user-select: -moz-none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
    user-select: none;
}

.panWrapper a.controls {
    background-size: 100%;
    width: 32px;
    height: 32px;
    display: block;
    position: absolute;
    left: 50%;
    z-index: 2;
    bottom: 30px;
    cursor: pointer;
}

.panWrapper a.controls.in {
    background-image: url('img/zoomIn.png');
    margin-left: -30px;
}

.panWrapper a.controls.out {
    background-image: url('img/zoomOut.png');
    margin-left: 30px;
}

.panWrapper a.controls.close {
    /*background-image: url('img/close.png');
    left: auto;
    right: 30px;
    top: 30px;*/
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-x-lg' viewBox='0 0 16 16'%3E%3Cpath d='M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854Z'/%3E%3C/svg%3E");
    left: unset;
    bottom: unset;
    width: 16px;
    height: 16px;
    position: absolute;
}

.panWrapper .loading {
    z-index: 3;
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -50px 0 0 -50px;
    width: 100px;
    height: 100px;
    background-image: url(img/loading.gif);
    background-repeat: no-repeat;
    background-size: 100%;
    display: block;
}

.panWrapper img {
    max-width: unset !important;
}