/**
 * Coaching / service pages (.riak-service-page in Custom HTML).
 * Aspect-ratio on the frame, not the img — avoids Smush + height attr fighting cover crops.
 */

body.riak-native-shell .riak-service-page__hero img {
  width: 100%;
  max-width: 840px;
  height: auto;
  display: block;
  margin: 28px auto 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  object-fit: contain;
  background: rgba(0, 0, 0, 0.12);
  aspect-ratio: auto;
}

body.riak-native-shell a.riak-service-page__hero-media {
  aspect-ratio: 16 / 9;
  max-width: 840px;
  width: 100%;
}

body.riak-native-shell a.riak-service-page__hero-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  aspect-ratio: unset;
  object-fit: cover;
}

body.riak-native-shell .riak-service-page__media-photo,
body.riak-native-shell .riak-service-page__media-kit {
  width: 100%;
  max-width: 840px;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}

body.riak-native-shell .riak-service-page__partner-logo {
  width: 100%;
  max-width: 520px;
  height: auto;
  object-fit: contain;
}

body.riak-native-shell .riak-service-page__hero img.lazyload,
body.riak-native-shell .riak-service-page__hero img.lazyloading,
body.riak-native-shell .riak-service-page__hero img.lazyloaded,
body.riak-native-shell a.riak-service-page__hero-media img.lazyload,
body.riak-native-shell a.riak-service-page__hero-media img.lazyloading,
body.riak-native-shell a.riak-service-page__hero-media img.lazyloaded {
  opacity: 1 !important;
}

body.riak-native-shell a.riak-service-page__hero-media img.lazyload,
body.riak-native-shell a.riak-service-page__hero-media img.lazyloading,
body.riak-native-shell a.riak-service-page__hero-media img.lazyloaded {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  aspect-ratio: unset !important;
  object-fit: cover !important;
}

body.riak-native-shell .riak-service-page__hero img.lazyload,
body.riak-native-shell .riak-service-page__hero img.lazyloading,
body.riak-native-shell .riak-service-page__hero img.lazyloaded,
body.riak-native-shell .riak-service-page .riak-service-page__hero img {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
}
