#ebookShell.mobile-pdf-active {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
}
#ebookShell.mobile-pdf-active #pdfStage {
  display: block;
  height: auto;
  padding: 0;
}
#ebookShell.mobile-pdf-active #fullscreenBtn {
  display: none;
}
#ebookShell .mobile-pdf-reader {
  width: 100%;
  max-width: 850px;
  margin-inline: auto;
}
#ebookShell .mobile-pdf-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #20262c;
  color: #fff;
}
#ebookShell .mobile-pdf-controls button,
#ebookShell .mobile-pdf-reader > a {
  padding: 8px 12px;
  min-height: 44px;
  font: inherit;
}
#ebookShell .mobile-pdf-reader > a {
  color: #fff;
}
#ebookShell .mobile-pdf-reader > canvas:not([hidden]) {
  display: block;
  width: 100%;
  height: auto;
}
