/* Two small navigation controls, clear of the phone's bottom safe area. */
body.sp-gallery-scroll a.buttonfooter,
body.sp-gallery-scroll .sp-gallery-top {
  position: fixed;
  z-index: 1000;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  left: calc(50% - 22px);
  right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid #d7d7d7;
  border-radius: 50%;
  background: #fff;
  color: #171717;
  box-shadow: 0 2px 8px #0002;
  cursor: pointer;
  line-height: 1;
}
body.sp-gallery-scroll--scrolled a.buttonfooter { left: calc(50% + 4px); }
body.sp-gallery-scroll .sp-gallery-top { left: calc(50% - 48px); }
body.sp-gallery-scroll .sp-gallery-top svg { width: 20px; height: 20px; transform: rotate(180deg); }
body.sp-gallery-scroll a.buttonfooter.hide,
body.sp-gallery-scroll .sp-gallery-top[hidden] { display: none; }
body.sp-gallery-scroll a.buttonfooter:focus-visible,
body.sp-gallery-scroll .sp-gallery-top:focus-visible { outline: 3px solid #2876b8; outline-offset: 3px; }
html.with-fancybox body.sp-gallery-scroll a.buttonfooter,
html.with-fancybox body.sp-gallery-scroll .sp-gallery-top,
body.sp-gallery-scroll.modal-open a.buttonfooter,
body.sp-gallery-scroll.modal-open .sp-gallery-top,
body.sp-gallery-scroll.slbActive a.buttonfooter,
body.sp-gallery-scroll.slbActive .sp-gallery-top { display: none; }
