.ms-gallery-frame {position:relative;min-width:0}
.ms-gallery-frame .mainphoto {touch-action:pan-y pinch-zoom;overflow:hidden}
.ms-gallery-frame .ms-slide-back {position:absolute;inset:0;pointer-events:none;background-repeat:no-repeat}
.ms-gallery-frame .ms-gallery-arrow {position:absolute;z-index:4;top:50%;transform:translateY(-50%);width:44px;height:44px;min-height:0;margin:0;padding:0;border:0;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.85);color:#302d29;box-shadow:0 1px 4px #0002;cursor:pointer}
.ms-gallery-frame .ms-gallery-arrow::before {
  content:"";position:absolute;left:50%;top:50%;width:9px;height:16px;
  transform:translate(-50%,-50%);background:currentColor;
  clip-path:polygon(78% 0,100% 10%,27% 50%,100% 90%,78% 100%,0 50%);
}
.ms-gallery-frame .ms-gallery-arrow.ms-next::before {transform:translate(-50%,-50%) scaleX(-1)}
.ms-gallery-arrow.ms-prev {left:8px}
.ms-gallery-arrow.ms-next {right:8px}
.ms-gallery-frame .ms-gallery-arrow[hidden] {display:none}
.ms-gallery-arrow:focus-visible {outline:3px solid #ba5700;outline-offset:2px}

@media (max-width:849px) {
  .ms-gallery-frame button.ms-gallery-arrow,
  .ms-gallery-frame button.ms-gallery-arrow:is(:hover,:active,:focus) {
    background:transparent;border:0;border-radius:0;box-shadow:none;
    -webkit-tap-highlight-color:transparent;
  }
  .ms-gallery-frame .ms-gallery-arrow::before {width:8px;height:14px}
  .ms-gallery-frame button.ms-gallery-arrow {filter:drop-shadow(0 0 1px #fff)}
}
