
.video-wall {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  gap: 1rem;
  padding-top: 2rem;
}

.chatter-box {
  justify-content: center;
}

.chatter-box--local {
  position: fixed;
  right: 7%;
  top:  10%;
  z-index: 200;
  width: min(30vw, 15vh);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: #111;
  cursor: move;
  touch-action: none;
}
@media (min-width: 768px) {
  .user-tile--local {
    width: min(15vw, 14vh);
  }
}

.chatter-box--remote {
  display: flex;
  position: relative;
  flex: 0 0 auto; /* Prevent containers from growing or shrinking */
}

.chatter-box--local video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.chatter-box--local.profile-picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chatter-box.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 300;
    background-color: black;
}
.chatter-box.fullscreen video {
    width: 100%;
    height: 100%;
}

.profile-picture,
video {
  position: absolute;
  display: block;
  z-index: 1;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  border: var(--tile-border) solid var(--dark-color);
  border-radius: var(--tile-border-radius);
  touch-action: none;
}

.chatter-box video {
  z-index: 2;
  visibility: hidden;
}
.chatter-box--local video {
  object-fit: contain; /* Ensure that we see everything we're publishing */
}
.chatter-box--remote video {
  object-fit: cover; /* Ensure they cover the entire container */
  object-position:  50% 20%; /Biased towards faces rather than cropping heads */
}


.speaking {
  box-shadow: 0 0 2rem rgba(255, 0, 0, 1); /* Optional for a glowing effect */
}

.username-button {
  position: absolute;
  z-index: 9;
  width: fit-content;
  padding: var(--username-padding);
  border-radius: var(--tile-container-border-radius);
  color: #fff;
  background-color: rgba(0,0,0,0.3);
  font-size: var(--username-font-size);
  top: 0.4rem;
  left: 0.4rem;
}

.icon-wrapper {
  position: absolute;
  z-index: 9;
  width: var(--icon-size);
  height: var(--icon-size);
  padding: var(--icon-padding);
  border-radius: 0.2rem;
  color: #fff;
  background-color: rgba(255,255,255,0.5);
}
.icon-wrapper img {
  height: var(--icon-size);
  width: var(--icon-size);
  margin: auto;
}

/*.icon-mic,
.icon-audio {
  top: 2.4rem;
  left: 0.4rem;
}

.icon-camera,
.icon-video {
  top: 4.4rem;
  left: 0.4rem;
}
*/

