/* Desktop wall: fit all eight feeds within the existing full-screen dialog.
   Smaller/shorter screens retain the existing readable scrolling layout. */
@media (min-width: 1024px) and (min-height: 500px) {
  #tcmw-video-wall > div.row {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    align-content: stretch !important;
    min-height: 0;
    overflow: hidden !important;
  }
  #tcmw-video-wall > div.row > section {
    display: flex;
    width: auto !important;
    max-width: none;
    min-width: 0;
    min-height: 0;
  }
  #tcmw-video-wall > div.row > section > div {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
  }
  #tcmw-video-wall > div.row > section > div > div:first-child {
    flex: 0 0 auto;
  }
  #tcmw-video-wall > div.row > section > div > div:last-child {
    flex: 1 1 0;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
  }
}
