/* Scope the close-button fix to photo viewers, not navigation or contact buttons. */
#bk76-gallery-carousel button.dialog-close,
body dialog.carousel-dialog button.dialog-close,
body dialog.shelf-viewer button.viewer-close {
  position: static !important;
  width: auto !important;
  min-width: 108px !important;
  max-width: none !important;
  height: auto !important;
  min-height: 44px !important;
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 10px 14px !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-indent: 0 !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  margin: 0 !important;
}
#bk76-gallery-carousel figure img,
dialog.carousel-dialog figure img,
dialog.shelf-viewer > img {
  touch-action: pan-y pinch-zoom;
  -webkit-user-drag: none;
  user-select: none;
}
#bk76-gallery-carousel figcaption,
dialog.carousel-dialog figcaption,
dialog.shelf-viewer .viewer-caption {
  overscroll-behavior: contain;
}
@media (max-width: 420px) {
  dialog.shelf-viewer .viewer-tools { gap: 8px; }
  dialog.shelf-viewer .viewer-prev,
  dialog.shelf-viewer .viewer-next { min-width: 44px; min-height: 44px; }
}
