/* Touch Safari's layout viewport can extend below its visible viewport. */
html.touch-viewport-bounds body>footer{
 bottom:calc(var(--cvb-visible-bottom,0px) + max(8px,env(safe-area-inset-bottom)))!important;
 max-height:max(44px,calc(var(--cvb-visible-height,100dvh) - var(--common-height,122px) - 64px))!important;
 box-sizing:border-box;overflow-y:auto!important;overflow-x:clip;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
}
html.touch-viewport-bounds #full-view#full-view{
 top:var(--cvb-visible-top,0px)!important;bottom:auto!important;
 height:var(--cvb-visible-height,100dvh)!important;max-height:var(--cvb-visible-height,100dvh)!important;
 box-sizing:border-box!important;overflow:hidden!important;
}
html.touch-viewport-bounds #full-view#full-view #image-viewer-footer{
 padding-bottom:max(4px,env(safe-area-inset-bottom))!important;box-sizing:border-box;
 max-height:max(44px,calc(var(--cvb-visible-height,100dvh) - var(--common-height,122px) - 24px))!important;
 overflow-y:auto!important;overflow-x:clip!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;flex-shrink:1!important;
}
html.touch-viewport-bounds #full-view#full-view .full-body{min-height:0!important}
html.touch-viewport-bounds.immersive #full-view.unified-viewer-drawer .immersive-controls{bottom:calc(var(--cvb-visible-bottom,0px) + 42px + env(safe-area-inset-bottom))!important}
html.touch-viewport-bounds.immersive #full-view.unified-viewer-drawer #viewer-controls-drawer-handlebar.viewer-drawer-fullscreen-handle{bottom:calc(var(--cvb-visible-bottom,0px) + var(--viewer-grip-bottom,max(4px,env(safe-area-inset-bottom))))!important}
