body {
  margin: 0;
}
.examples-wrapper {
  display: flex;
  flex-wrap: wrap;
}
.example {
  position: relative;
  display: flex;
  /* border: 1px solid #ccc; */
  box-sizing: border-box;
  flex-basis: calc(100% / 3);
  flex-grow: 1;
  flex-shrink: 1;
  padding: 6rem 2rem;
  align-items: center;
  justify-content: center;
  outline: 1px solid oklch(50% 0 0 / 0.05);
  outline-offset: -0.5px;

  &[data-width="small"] {}
  &[data-width="wide"] {
    flex-basis: calc(100% / 3 * 2);
  }
  &[data-width="full"] {
    flex-basis: 100%;
  }

  .footer {
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    padding: 0.25rem;
    /* justify-content: space-between; */
    gap: 0.5em;
    font-size: 0.75rem;
    color: oklch(50% 0 0 / 0.25);
    z-index: 10;
    writing-mode: sideways-lr;
    align-items: flex-end;

    .example-show-code {
      user-select: none;
      white-space: nowrap;
      cursor: pointer;
    }
  }
}
.popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;

  &.show {
    display: flex;
  }
  .content {
    background: #fff;
    padding: 1em;
    margin: 2em;
    max-width: 90vw;
    width: 800px;
    border-radius: 0.5em;
    display: flex;
    flex-direction: column;
    position: relative;
  }
  textarea {
    box-sizing: border-box;
    width: 100%;
    height: 200px;
    margin-top: 0.5em;
    font-family: monospace;
    resize: vertical;
  }
  h2 {
    margin-top: 0;
    margin-bottom: 0.5em;
  }
  section {
    margin-bottom: 1em;
  }
  header {
    display: flex;
    padding: 0;
    gap: .5em;
    align-items: baseline;
  }
}
