section.wp-block-basis-thema-random-drawing {
  height: calc(100vh - 100px);
  margin-bottom: min(20vw, 200px);
}

.wp-block-basis-thema-random-drawing > figure {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  grid-auto-rows: auto;
  justify-items: center;
  gap: 0.75rem;
  width: 100%;
  height: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: calc(20px + 1rem) 1% 1rem;
}

.wp-block-basis-thema-random-drawing > figure > img {
  display: block;
  width: min(100%, 64rem);
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.wp-block-basis-thema-random-drawing > figure > figcaption {
  box-sizing: border-box;
  min-width: 0;
  max-width: min(100%, 65ch);
  color: #000;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}

.wp-block-basis-thema-random-drawing .drawings-details > span:not(:last-child)::after {
  content: " · ";
}

.wp-block-basis-thema-random-drawing .drawings-details {
  color: #555;
}

@media (max-width: 600px) {
  section.wp-block-basis-thema-random-drawing,
  .wp-block-basis-thema-random-drawing > figure,
  .wp-block-basis-thema-random-drawing > figure > img {
    height: auto;
  }

  .wp-block-basis-thema-random-drawing > figure {
    grid-template-rows: auto;
  }

  .wp-block-basis-thema-random-drawing > figure > figcaption {
    justify-self: start;
    text-align: left;
  }
}
