/* Without the editor, a p5 is the sketch alone, as tall as `height`. */
.directive-p5.standalone .container {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--color-spacer);
  border-radius: 8px;
}

.directive-p5 iframe {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: none;
}

.directive-p5.standalone iframe {
  height: 100%;
}

.directive-p5 iframe canvas {
  margin: 0 auto;
}

/* With compare: the frame the target is laid over. */
.directive-p5 .p5-frame {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
