/* Keep the resting card readable until the search field actually comes into view. */
@media (prefers-reduced-motion: no-preference) {
  #welcome-card:not(.intro-guided) :is(.arrival-trail, .arrival-pin, .welcome-copy) {
    animation: none;
  }
  #welcome-card:not(.intro-guided):not(.intro-touched) :is(.arrival-trail, .arrival-pin) {
    opacity: 0;
  }
}

/* The WordPress content column already supplies the campus grid gutters. */
#inspire-campus-typing[data-directory-page] .campus-finder { padding-inline: 0; }
#welcome-card { padding: 16px; }
#inspire-campus-typing .welcome-route {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  line-height: 0;
}
.welcome-route picture, .welcome-route img {
  display: block;
  width: 100%;
  height: auto;
}

@media (width < 900px) {
  #welcome-card { grid-template-columns: minmax(0, 1fr); }
  #inspire-campus-typing .welcome-route { grid-row: 1; }
}
@media (600px <= width < 900px) {
  .welcome-route img { aspect-ratio: 2.15; object-fit: cover; }
}
@media (min-width: 900px) {
  #inspire-campus-typing .welcome-route {
    position: relative;
    align-self: stretch;
    aspect-ratio: 5 / 3;
    min-height: 100%;
  }
  .welcome-route picture {
    position: absolute;
    inset: 0;
    height: 100%;
    container: route-panel / size;
    background: #e9eae8;
  }
  .welcome-route img {
    height: 100%;
    object-fit: cover;
    object-position: 74% center;
  }
  /* A long list of suburb suggestions can make this panel unusually tall. */
  @container route-panel (aspect-ratio < 1.25) {
    .welcome-route img { object-fit: contain; object-position: center; }
  }
}
