/* Styles for the generated IronLAB figure gallery (written by `gallery docs`; do not edit). */

.md-typeset .ironlab-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.md-typeset .ironlab-gallery .card {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 1rem;
  align-items: start;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.4rem;
  background-color: var(--md-default-bg-color);
  transition: box-shadow 125ms, border-color 125ms;
}

.md-typeset .ironlab-gallery .card:hover {
  border-color: var(--md-accent-fg-color);
  box-shadow: var(--md-shadow-z2);
}

.md-typeset .ironlab-gallery .card p {
  margin: 0 0 0.3rem;
}

/* The thumbnail occupies the left column beside the title and the description. */
.md-typeset .ironlab-gallery .card > p:first-child {
  grid-row: 1 / span 2;
  margin: 0;
}

.md-typeset .ironlab-gallery .card img {
  display: block;
  width: 100%;
  height: auto;
  background-color: #ffffff;
  border-radius: 0.2rem;
}

/* On a narrow screen the thumbnail sits above the text, at a slightly larger width. */
@media screen and (max-width: 40em) {
  .md-typeset .ironlab-gallery .card {
    grid-template-columns: minmax(0, 1fr);
  }

  .md-typeset .ironlab-gallery .card > p:first-child {
    grid-row: auto;
    max-width: 14rem;
    margin-bottom: 0.5rem;
  }
}

.md-typeset .ironlab-gallery .card strong a {
  color: var(--md-typeset-a-color);
}

.md-typeset .ironlab-figure img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  background-color: #ffffff;
}
