/* theme uses burger menu for width <= 768px */
@media screen and (width > 768px) and (height > 640px) {

  /* shrink elements in the side bar, so their content can overflow */
  .wy-side-scroll {
    display: flex;
    flex-direction: column;
  }

  /* only overflow the nav, instead of the entire side bar */
  .wy-menu-vertical {
    overflow-y: auto;
  }
}

@media screen and ((width <= 768px) or (height <= 640px)) {
  /* Make the search sticky.
   * The logo will not be visible on small screens,
   * unless you manually scroll to the top
   */
  .wy-side-nav-search {
    position: sticky;
    top: -270px;
  }

  /* adjust auto-scroll position, search should not hide nav */
  .wy-side-scroll {
    scroll-padding-top: 60px;
  }
}
