.live-video {
  margin-bottom: 3rem;
}

.live-video h2 {
  font-size: 2rem;
}

.video-box {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1;
  background: #000;
  margin-bottom: 1rem;
  overflow: hidden;
}

.video-box canvas {
  display: block;
  max-width: 100%;
  height: auto !important;
}

.camera-bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--gap);
  flex-wrap: wrap;
  padding: 0.75rem 0;
  background: #fff;
}

.camera-bar button {
  font: inherit;
  padding: 0.4rem 1rem;
  cursor: pointer;
}

/* The camera picture is only used as a texture for the sketches, never shown directly */
#camera-feed {
  position: fixed;
  left: -9999px;
  width: 1px;
  height: 1px;
}

.video-box:not(.on)::before {
  content: "Camera off";
  display: grid;
  place-items: center;
  height: 100%;
  color: #777;
}
