/* Original viewer fit/layout; only Prev/Next controls are restored. */
body.collection-type-gallery #numberControls,
body.collection-type-gallery #dotControls,
body.collection-type-gallery #tinyThumbControls { display: none !important; }
body.collection-type-gallery button#backToThumbs {
  -webkit-appearance: none; appearance: none;
  background: transparent; border: 0; border-radius: 0;
  color: inherit; font-family: inherit; font-size: 20px; line-height: 1;
}
body.collection-type-gallery button#backToThumbs:focus-visible {
  outline: 2px solid currentColor; outline-offset: 2px;
}

/* Original bottom control placement/type; native buttons retain keyboard access. */
body.collection-type-gallery #simpleControls button.control {
  -webkit-appearance: none; appearance: none;
  background: transparent; border: 0; border-radius: 0;
  margin: 0; padding: 0; font: inherit; line-height: inherit; cursor: pointer;
}
body.collection-type-gallery #simpleControls button.control:focus-visible {
  outline: 2px solid currentColor; outline-offset: 2px;
}
