/* Celular na horizontal: aproveita toda a altura sem cortar a foto */
@media (orientation: landscape) and (max-height: 500px) and (max-width: 1000px) {
    #sbox-overlay {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        z-index: 2000000 !important;
    }
    #sbox-window {
        position: fixed !important;
        top: 4px !important;
        right: 4px !important;
        bottom: 4px !important;
        left: 4px !important;
        width: auto !important;
        height: auto !important;
        max-width: none !important;
        max-height: none !important;
        box-sizing: border-box !important;
        z-index: 2000001 !important;
    }
    #sbox-content,
    #sbox-content iframe {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        overflow: hidden !important;
    }
    #sbox-btn-close {
        top: -2px !important;
        right: -2px !important;
    }

    body.contentpane {
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        background: #111 !important;
    }
    body.contentpane #pg-multibox-table,
    body.contentpane #pg-multibox-table tbody,
    body.contentpane #pg-multibox-table tr {
        display: block !important;
        width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    body.contentpane .pg-multibox-righttd {
        display: none !important;
    }
    body.contentpane .pg-multibox-lefttd,
    body.contentpane .pg-multibox-left {
        display: block !important;
        width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #111 !important;
    }
    body.contentpane .pg-multibox-left > a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
    }
    body.contentpane .pg-detail-image {
        display: block !important;
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        object-fit: contain !important;
    }
    body.contentpane .pg-imgbd-multibox-prev,
    body.contentpane .pg-imgbd-multibox-next {
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
}
