/* V335: Free Resources notes must open as a centered viewport modal on mobile and desktop. */
html body .free-note-reader-backdrop {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  padding: 12px !important;
  margin: 0 !important;
  z-index: 2147483000 !important;
}
html body .free-note-reader-backdrop > .ebook-note-view-modal {
  position: relative !important;
  inset: auto !important;
  align-self: center !important;
  margin: auto !important;
  margin-top: 0 !important;
  transform: none !important;
  width: min(900px, calc(100vw - 24px)) !important;
  max-width: calc(100vw - 24px) !important;
  height: auto !important;
  max-height: calc(100dvh - 24px) !important;
  flex: 0 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border-radius: 18px !important;
}
html body .free-note-reader-backdrop .modal-head,
html body .free-note-reader-backdrop .modal-foot {
  flex: 0 0 auto !important;
}
html body .free-note-reader-backdrop .modal-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: calc(100dvh - 180px) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
}
@media (max-width: 720px) {
  html body .free-note-reader-backdrop { padding: 12px !important; align-items: center !important; }
  html body .free-note-reader-backdrop > .ebook-note-view-modal {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100dvh - 24px) !important;
    margin: auto !important;
    margin-top: 0 !important;
    border-radius: 18px !important;
  }
}
