.s7-figure {
  margin: 1.25rem 0 2rem;
  min-width: 0;
}

.s7-figure > img {
  display: block;
  width: 100%;
  max-width: 680px;
  height: auto;
}

.s7-figure figcaption {
  margin-top: .5rem;
}

.s7-figure summary {
  width: fit-content;
  padding: .5rem .75rem;
  margin-top: .5rem;
  border: 1px solid #91b4ca;
  border-radius: .5rem;
  background: #e2eef6;
  color: #142f48;
  cursor: pointer;
}

.s7-figure summary:focus-visible,
.s7-figure-view:focus-visible {
  outline: 2px solid #214967;
  outline-offset: 3px;
}

.s7-figure details[open] .s7-expand,
.s7-figure details:not([open]) .s7-collapse {
  display: none;
}

.s7-figure-view {
  overflow: auto;
  max-width: min(100%, 760px);
  margin-top: .5rem;
}

.s7-figure-view img {
  display: block;
  width: 760px;
  max-width: none;
  height: auto;
}

/* These lessons use the mobile TOC whenever the shared sidebar is hidden. */
@media (min-width: 760.01px) and (max-width: 1000px) {
  .atlas-pilot .atlas-toc-mobile {
    display: block;
    margin-top: 16px;
  }
}
