/* Nur auf der Seite D. Meisterschaften 2023 aktiv. */
body.sgcw-dm2023-mobil-lesbar .sgcw-dm2023-ranking-wrap {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 0 18px;
}

body.sgcw-dm2023-mobil-lesbar .sgcw-dm2023-ranking-image {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    cursor: zoom-in;
    box-sizing: border-box;
}

body.sgcw-dm2023-mobil-lesbar .sgcw-dm2023-open {
    display: none;
    width: 100%;
    margin: 7px 0 0;
    padding: 9px 12px;
    border: 0;
    border-radius: 6px;
    background: #177a2f;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
}

@media screen and (max-width: 1024px) {
    body.sgcw-dm2023-mobil-lesbar .sgcw-dm2023-open {
        display: block;
    }

    body.sgcw-dm2023-mobil-lesbar .sgcw-dm2023-ranking-image {
        border: 1px solid rgba(0, 0, 0, 0.12);
        border-radius: 5px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    }
}

/* Vollbildanzeige. Sie verändert das Hueman-Seitenlayout und die Seitenleisten nicht. */
#sgcw-dm2023-viewer[hidden] {
    display: none !important;
}

#sgcw-dm2023-viewer {
    position: fixed;
    inset: 0;
    z-index: 2147483646;
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100dvh;
    overflow: hidden;
    background: rgba(15, 18, 16, 0.98);
    color: #fff;
}

#sgcw-dm2023-viewer .sgcw-dm2023-toolbar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 48px;
    padding: 5px 8px;
    background: #177a2f;
    box-sizing: border-box;
}

#sgcw-dm2023-viewer button {
    min-width: 40px;
    min-height: 38px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

#sgcw-dm2023-viewer button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

#sgcw-dm2023-viewer .sgcw-dm2023-close {
    margin-left: auto;
    font-size: 22px;
    line-height: 1;
}

#sgcw-dm2023-viewer .sgcw-dm2023-counter {
    min-width: 66px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

#sgcw-dm2023-viewer .sgcw-dm2023-stage {
    flex: 1 1 auto;
    position: relative;
    width: 100%;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    padding: 8px;
    box-sizing: border-box;
}

#sgcw-dm2023-viewer .sgcw-dm2023-canvas {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-width: 100%;
    min-height: 100%;
}

#sgcw-dm2023-viewer .sgcw-dm2023-full-image {
    display: block;
    max-width: none !important;
    height: auto !important;
    user-select: none;
    -webkit-user-drag: none;
    background: #fff;
}

body.sgcw-dm2023-viewer-open {
    overflow: hidden !important;
}

@media screen and (orientation: landscape) and (max-height: 600px) {
    #sgcw-dm2023-viewer .sgcw-dm2023-toolbar {
        min-height: 42px;
        padding: 3px 7px;
    }

    #sgcw-dm2023-viewer button {
        min-height: 34px;
        padding: 4px 9px;
    }

    #sgcw-dm2023-viewer .sgcw-dm2023-stage {
        padding: 5px;
    }
}
