/* Single post: main image stage — any aspect ratio, contain, never crop */

.sauce-image-stage {
  margin: 12px 10px 0;
  padding: 0;
  background: var(--sauce-bg, #2a2e36);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
}

.sauce-image-stage__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 120px;
  max-height: min(85vh, 1100px);
  line-height: 0;
}

.sauce-main-image {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: min(85vh, 1100px);
  width: auto;
  height: auto;
  object-fit: contain;
  vertical-align: middle;
}

/* Visually hidden but available to AT / crawlers that read figcaption */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

@media (max-width: 767px) {
  .sauce-image-stage {
    margin: 8px 0 0;
    border-radius: 0;
  }

  .sauce-image-stage__link,
  .sauce-main-image {
    max-height: min(78vh, 900px);
  }
}
