/* Preserve the full framing of the approved case-study images. */
body.case-reference #main-content .case-story__gallery.approved-image-sequence {
  align-items: start;
}

body.case-reference #main-content .case-story__gallery.approved-image-sequence figure.approved-image-figure:nth-child(n) {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  aspect-ratio: auto;
  overflow: hidden;
  background: #f1f1f1;
}

body.case-reference #main-content .case-story__gallery.approved-image-sequence figure.approved-image-figure > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 0;
  object-fit: contain;
}

@media (min-width: 601px) {
  body.case-reference #main-content .research-gallery.approved-image-sequence figure.approved-image-figure:nth-child(n),
  body.case-reference #main-content .project-gallery-refined.approved-image-sequence figure.approved-image-figure:nth-child(n) {
    grid-column: auto;
  }

  body.case-reference #main-content .research-gallery.approved-image-sequence figure.approved-image-figure:first-child,
  body.case-reference #main-content .research-gallery.approved-image-sequence figure.approved-image-figure:last-child,
  body.case-reference #main-content .project-gallery-refined.approved-image-sequence figure.approved-image-figure:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  body.case-reference #main-content .case-story__gallery.approved-image-sequence figure.approved-image-figure:nth-child(n) {
    grid-column: 1;
  }
}
