/*
 * AFFINITY UK University Study Abroad — mobile-only hero image layout.
 * This stylesheet is intentionally scoped to .auu-page .auu-hero.
 * The existing image remains the ORIGINAL background-image on .auu-hero__photo.
 * Desktop >= 601px: no change at all.
 */
@media screen and (max-width: 600px) {
  /* Present the original two hero children as text, then an independent photo. */
  .auu-page section.auu-hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    min-height: 0 !important;
    padding: 67px 0 26px !important;
    background: #112637 !important;
  }

  /* Old dark gradient covered the entire image; remove only on smartphones. */
  .auu-page section.auu-hero::after {
    display: none !important;
    content: none !important;
  }

  .auu-page section.auu-hero > .auu-hero__inner {
    position: relative !important;
    z-index: 1 !important;
    order: 1 !important;
    flex: none !important;
  }

  .auu-page section.auu-hero > .auu-hero__photo {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: block !important;
    order: 2 !important;
    flex: none !important;
    width: calc(100% - 38px) !important;
    max-width: 900px !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 10 !important;
    margin: 34px auto 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    transform: none !important;
    background-color: #223e50 !important;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    z-index: 1 !important;
  }
}
