/* Keep multi-row workspaces at the same pane size as the two-pane layout. */
.workspace-grid.layout-4,
.workspace-grid.layout-6 {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

/* At the end of a conversation, the wheel can continue to the next pane row. */
.layout-4 .room-stream,
.layout-6 .room-stream {
  overscroll-behavior-y: auto;
}

@media (min-width: 761px) {
  .workspace-grid.layout-4,
  .workspace-grid.layout-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: 100%;
    align-content: start;
  }

  .workspace-grid.layout-4 .room-pane,
  .workspace-grid.layout-6 .room-pane {
    min-height: 0;
    height: auto;
  }
}

.grid-glyph.count-6 {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
}
