:root{--ii-legal-height:calc(44px + env(safe-area-inset-bottom,0px))}
.ii-body{padding-bottom:var(--ii-legal-height)}
.ii-legal-footer{position:fixed;inset:auto 0 0;z-index:40;height:var(--ii-legal-height);display:flex;align-items:center;justify-content:center;gap:28px;padding:0 24px env(safe-area-inset-bottom,0px);background:#fff;color:#707070;font-size:10px;line-height:1.4}
.ii-legal-footer a{display:flex;align-items:center;justify-content:center;min-height:32px;text-align:center}
.ii-legal-footer a:hover{text-decoration:underline;text-underline-offset:4px}
.ii-index-open .ii-footer{bottom:var(--ii-legal-height)}
.ii-index{padding-bottom:calc(110px + var(--ii-legal-height));scroll-padding-bottom:calc(110px + var(--ii-legal-height))}
.ii-body .ii-landing{min-height:calc(100svh - 62px - var(--ii-legal-height))}
.ii-js .ii-gallery:not(.ii-thumbnails){min-height:calc(100svh - 132px - var(--ii-legal-height))}
.ii-js .ii-gallery:not(.ii-thumbnails) .ii-slide{height:calc(100svh - 172px - var(--ii-legal-height))}
.ii-js .ii-gallery:not(.ii-thumbnails) .ii-slide img{max-height:min(calc(72svh - var(--ii-legal-height)),700px)}
@media(max-width:600px){
  :root{--ii-legal-height:calc(64px + env(safe-area-inset-bottom,0px))}
  .ii-legal-footer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:32px 32px;gap:0 12px;padding-left:20px;padding-right:20px;font-size:10px}
  .ii-index{bottom:calc(64px + var(--ii-legal-height));padding-bottom:22px;scroll-padding-bottom:22px}
  .ii-index-open .ii-footer{height:64px;padding:10px 20px}
  .ii-body .ii-landing{min-height:calc(100svh - 60px - var(--ii-legal-height))}
  .ii-js .ii-gallery:not(.ii-thumbnails){min-height:calc(100svh - 160px - var(--ii-legal-height))}
  .ii-js .ii-gallery:not(.ii-thumbnails) .ii-slide{height:calc(100svh - 190px - var(--ii-legal-height))}
  .ii-js .ii-gallery:not(.ii-thumbnails) .ii-slide img{max-height:calc(100svh - 200px - var(--ii-legal-height))}
}
@media(min-width:601px) and (max-width:950px) and (max-height:500px){.ii-index{bottom:calc(64px + var(--ii-legal-height));padding-bottom:16px;scroll-padding-bottom:16px}}
