/* Keep natural document scrolling and let picker lists expand down on phones. */
@media (max-width: 540px) {
  .drama-page .site-shell {
    display: block;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
  }

  .drama-page main {
    display: block;
    flex: none;
    min-height: auto;
  }

  .drama-page .content-grid {
    flex: none;
    min-height: auto;
    overflow: visible;
  }

  .drama-page .handout-section {
    display: block;
    flex: none;
    min-height: auto;
    overflow: visible;
  }

  .drama-page .handout-pages {
    flex: none;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    -webkit-overflow-scrolling: auto;
    touch-action: auto;
  }

  .drama-page .picker-panel,
  .drama-page .episode-panel {
    top: calc(100% - 1px);
    bottom: auto;
    max-height: min(54vh, 620px);
    max-height: min(54dvh, 620px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
  }
}
