/* Match the two desktop panels without stretching product photographs. */
@media (min-width:901px) {
  #home-recommendations .wlhr-layout {
    --whu-panel-height:clamp(360px,calc(100dvh - var(--willee-header-clearance,124px) - 24px),900px);
    align-items:stretch;
  }
  #home-recommendations .wlhr-layout > .wlhr-filter-aside {
    position:static;
    height:var(--whu-panel-height);
    min-height:0;
  }
  #home-recommendations .wlhr-filter-panel {
    box-sizing:border-box;
    height:100%;
    max-height:none;
    overflow-y:auto;
    scrollbar-gutter:stable;
  }
  #home-recommendations .wlhr-layout > .wlhr-results {
    box-sizing:border-box;
    height:var(--whu-panel-height);
    min-height:0;
    display:flex;
    flex-direction:column;
  }
  #home-recommendations .wlhr-results-top,
  #home-recommendations .wlhr-result-actions {flex:0 0 auto}
  #home-recommendations .wlhr-results > .wlhr-grid {
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    overflow-x:hidden;
    scrollbar-gutter:stable;
    align-content:start;
    grid-auto-rows:max-content;
    padding:2px 4px 4px 2px;
  }
  #home-recommendations .wlhr-result-actions {padding-top:16px}
  #home-recommendations .wlhr-grid:focus-visible {outline:2px solid #16719b;outline-offset:2px}
}
@media (max-width:900px) {
  #home-recommendations .wlhr-layout > .wlhr-filter-aside,
  #home-recommendations .wlhr-layout > .wlhr-results,
  #home-recommendations .wlhr-filter-panel {height:auto;min-height:0;max-height:none}
  #home-recommendations .wlhr-results > .wlhr-grid {overflow:visible;max-height:none}
}
