.venue-hero {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: .75rem;
}
.venue-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease, visibility .8s;
}
.venue-slide.is-active { opacity: 1; visibility: visible; }
.venue-slide > img {
  display: block;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.venue-photo-credit {
  margin: 0;
  padding: 1rem 1.5rem;
  font-size: .7rem;
  line-height: 1.5;
  text-align: center;
}
.venue-photo-credit a { color: inherit; text-decoration: underline; }
@media (min-width: 960px) {
  .venue-hero { position: absolute; inset: 0; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .venue-slide { transition: none; }
}

/* Let the image determine the mobile height. */
@media (max-width: 959px) {
  .hero--img-left > .hero--aside { aspect-ratio: auto; }
  .venue-hero {
    display: grid;
    height: auto;
  }
  .venue-slide {
    position: relative;
    inset: auto;
    grid-area: 1 / 1;
    grid-template-rows: auto;
    min-width: 0;
    align-self: stretch;
  }
  .venue-slide > img {
    aspect-ratio: 16 / 9;
    height: auto;
    min-width: 0;
  }
  
}

/* Keep each subject in frame while filling the carousel without borders. */
.venue-slide > img[src*="mxv-fast-sunrise"] { object-position: 50% 65%; }
.venue-slide > img[src*="kari-conference-networking"] { object-position: 72% 40%; }
.venue-slide > img[src*="rail-trackside-discussion"] { object-position: 60% 55%; }
.venue-slide > img[src*="rail-wheel-inspection"] { object-position: 40% 30%; }
.venue-slide > img[src*="pueblo-convention-center-exterior"] { object-position: 80% 45%; }

/* Keep photo descriptions available to screen readers without visible captions. */
.venue-slide > figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Keep the downtown stairs and waterfall visible in wide desktop crops. */
@media (min-width: 960px) {
  .venue-slide > img[src*="pueblo-spring-downtown"] { object-position: 50% 100%; }
}

/* Preserve the complete train noses in wide and mobile slideshow crops. */
.venue-slide > img[src*="amtrak-acela-night"] { object-position: 50% 100%; }
.venue-slide > img[src*="amtrak-acela-daylight"] { object-position: 50% 75%; }
.venue-slide > img[src*="amtrak-airo-locomotive"] { object-position: 50% 65%; }
