/* Opt-in docked gallery: only used by /viewer-docked/*.
   At <= 800px the source reader's overlay remains completely unchanged. */
@media (min-width: 801px) {
  .app {
    display: grid;
    grid-template-columns: 0 minmax(0, 1fr);
    grid-template-rows: 76px minmax(0, 1fr);
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  body.snx-rail-open .app {
    grid-template-columns: clamp(220px, 22vw, 300px) minmax(0, 1fr);
  }
  .toolbar {
    grid-column: 1 / -1;
    grid-row: 1;
    min-width: 0;
  }
  .stage {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: 100%;
  }
  .drawer-backdrop,
  .drawer-backdrop.show {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  .thumb-drawer {
    position: relative;
    grid-column: 1;
    grid-row: 2;
    left: auto;
    top: auto;
    bottom: auto;
    display: none;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    transform: none !important;
    transition: none;
    box-shadow: 2px 0 14px rgba(7, 40, 80, .10);
    border-right: 1px solid #dbe5f0;
    z-index: 2;
  }
  .thumb-drawer.open {
    display: flex;
  }
  .drawer-head {
    height: 61px;
    min-height: 61px;
  }
  .thumb-grid {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  #thumbsBtn[aria-expanded='true'] { background: #e6f1ff; }
}
