.participants-grid-view {
  height: 100%;
  width: 100%;
  display: block;
  position: relative;
  aspect-ratio: 16/9;
}

.participants-grid-view__button {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  background: white;
}

.participants-grid-view__button:disabled {
  cursor: auto;
}

@mixin participants-grid-view__page_button {
  position: absolute;
  top: 0;
  height: 100%;
  z-index: 3;
}

.participants-grid-view__previous-button {
  @include participants-grid-view__page_button;
  background: linear-gradient(270deg, rgba(13, 13, 13, 0) 0%, #0d0d0d 100%);
  left: 0;
}

.participants-grid-view__next-button {
  @include participants-grid-view__page_button;
  background: linear-gradient(90deg, rgba(13, 13, 13, 0) 0%, #0d0d0d 100%);
  right: 0;
}

.participants-grid-view__grid {
  height: 100%;
  max-height: 100%;
  display: grid;
  overflow: hidden;
  gap: 2px;
  grid-auto-rows: 1fr;
}

.participants-grid-view__grid--1-column {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.participants-grid-view__grid--2-columns {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 1fr;
}

.participants-grid-view__grid--3-columns {
  grid-template-columns: repeat(3, 1fr);
}

.participants-grid-view__grid--4-columns {
  grid-template-columns: repeat(4, 1fr);
}

.participants-grid-view__grid--5-columns {
  grid-template-columns: repeat(5, 1fr);
}

.participants-grid-view__grid .participant__video-container {
  max-height: 100%;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  display: flex;
  position: relative;

  > video {
    position: absolute;
  }
}


.participants-grid-view__next-button-icon {
  &:before {
    color: white;
    content: '\e80d';
    font-size: 24px;
    font-family: zocksiconfont, serif;
  }
}

.participants-grid-view__previous-button-icon {
  &:before {
    color: white;
    content: '\e80c';
    font-size: 24px;
    font-family: zocksiconfont, serif;
  }
}
