body {
  background-color: #e0f0fa;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1rem;
  margin: 0;
  padding: 0;
}

.visuals-content {
  max-width: 960px;
  margin: 2rem auto;
  padding: 1rem;
}

.image-block {
  /*border: 1px black solid;*/
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.image-block img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.image-block figcaption {
  /*border: 1px black solid;*/
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #444;
}

.image-block.left {
  align-items: flex-start;
  text-align: left;
}

.image-block.right {
  align-items: flex-end;
  text-align: right;
}

/* On mobile the <figure> tag can introduce unwanted default margins,
   especially when the screen is narrow.  To reduce the spacing around
   our images on smaller screens, we explicitly override this behavior
   with a mobile-first CSS rule. */
figure.image-block {

  /* Smaller bottom margin, no side margins, no top margin. */
  margin: 0 0 1.5rem 0; /* top, right, bottom, left */
  padding: 0;
}


/* For large screens. */
@media (min-width: 768px) {
  .image-block {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .image-block.left {
    flex-direction: row;
  }

  .image-block.right {
    flex-direction: row-reverse;
  }

  .image-block img {
    max-width: 70%;
    margin: 0 1rem;
  }

  .image-block figcaption {
    font-size: 1.1rem;
    align-self: center; /* Vertical centering. */
    text-align: center; /* Horizontal centering. */
    line-height: 1.6;
    width: 100%; /* Helps text center nicely in its column. */
  }
}
