/* The Collection sidebar uses the available scrollport, not the old footer reserve. */
@media (min-width:721px) {
  body.home-ui.gallery-locked #screen > .collection-screen > .sidebar-column:not(.sidebar-sliding) {
    --owner-sidebar-top:20px; --owner-sidebar-bottom:12px;
    --owner-sidebar-masthead:var(--masthead-height);
    --owner-sidebar-fit:max(0px,calc(100dvh - var(--owner-sidebar-masthead) - var(--owner-sidebar-top) - var(--owner-sidebar-bottom)));
    block-size:var(--owner-sidebar-fit);
    max-block-size:var(--owner-sidebar-fit) !important;
  }
  body.home-ui.gallery-locked.gallery-header-hidden #screen > .collection-screen > .sidebar-column:not(.sidebar-sliding) { --owner-sidebar-masthead:0px; }
  body.home-ui.gallery-locked #screen > .collection-screen > .sidebar-column:not(.sidebar-sliding) > .collection-sidebar {
    flex:1 1 auto; min-block-size:0; max-block-size:100% !important;
  }
}
@media (min-width:1121px) {
  body.home-ui.gallery-locked #screen > .collection-screen > .sidebar-column:not(.sidebar-sliding) { --owner-sidebar-top:10px; }
}
