.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 1rem;
}

.image-grid figure {
  margin: 0;
}

.image-grid img {
  width: 100%;
  height: auto;
}

@media screen and (max-width: 600px) {
  .image-grid {
    grid-template-columns: 1fr;
  }
}

.hbox {
  display: flex;
  gap: 1rem;
}

.hbox > * {
  flex: 1;
  padding: 1rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 4px;
}

.image-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  --image-row-height: 250px;
}

.image-row p {
  margin: 0;
  min-width: 0;
}

.image-row img {
  height: var(--image-row-height);
  width: auto;
  max-width: 100%;
  display: block;
}

.image-row p:last-child {
  margin-left: auto;
}

@media screen and (max-width: 600px) {
  .image-row {
    flex-direction: column;
  }
  .image-row img {
    height: auto;
    width: 100%;
  }
}