.participants-speaker-view {
  display: grid;
  grid-template-columns: 17fr 3fr;
  grid-template-rows: minmax(0, 1fr);
  grid-template-areas: 'speaker others';
  height: 100%;
  position: relative;
  gap: 2px;
  align-items: center;
}

.participants-speaker-view__active-speaker {
  grid-area: speaker;
  max-height: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.participants-speaker-view__only-speaker {
  grid-area: 1 / 1 / -1 / -1;
}

.participants-speaker-view__others-container {
  height: 100%;
  grid-area: others;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.participants-speaker-view__others {
  height: 100%;
  gap: 2px;
  padding: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--zocks-grey-2);
  scrollbar-width: none; /* Firefox 64 */
  -ms-overflow-style: none; /* Internet Explorer 11 */
  &::-webkit-scrollbar {
    /** WebKit */
    display: none;
  }
}

.participants-speaker-view__others .participant {
  display: block;
  position: relative;
  height: unset;
  width: 100%;
  background: var(--zocks-grey-3);
  flex: 0 0 auto;
  &:not(video) {
    aspect-ratio: 16/9;
  }
}

.participants-speaker-view__active-speaker .participant {
  &:not(video) {
    aspect-ratio: 16/9;
  }
}

.participants-speaker-view .participant__video-container {
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  display: flex;
}

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

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

.participants-speaker-view__previous-button {
  &:before {
    content: 'CLICK FOR THE OTHERS';
    display: block;
    padding: 20px 0;
  }
  color: white;
  grid-area: others;
  background: linear-gradient(0deg, rgba(13, 13, 13, 0) 0%, #0d0d0d 100%);
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 100%;
}

.participants-speaker-view__next-button {
  width: 100%;
  background: linear-gradient(180deg, rgba(13, 13, 13, 0) 0%, #0d0d0d 100%);
  grid-area: others;
  position: absolute;
  bottom: 0;
  right: 0;
  color: white;

  &:before {
    content: 'CLICK FOR THE OTHERS';
    display: block;
    padding: 20px 0;
  }
}


.participants-speaker-view__next-button-icon {
  &:after {
    content: '\e800';
    font-size: 24px;
    font-family: zocksiconfont, serif;
  }
}

.participants-speaker-view__previous-button-icon {
  &:after {
    content: '\e803';
    font-size: 24px;
    font-family: zocksiconfont, serif;
  }
}

.active-speaker__container {
  position: relative;
  width: 100%;
  max-height: 100%;
}

.active-speaker__participant {
  width: 100%;
  height: 100%;
}

.active-speaker__participant--hidden {
  position: absolute;
  opacity: 0;
  z-index: -9999;
}
