/* Pass 53: one reliable guide-photo layout for older and newer guide templates. */
/* Older guides do not have the v40-guide body class or the v41 guide stylesheet. */
.guide-page .guide-hero.v40-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(0, .87fr);
  align-items: center;
  gap: clamp(20px, 3vw, 38px);
  padding-top: 29px;
  padding-bottom: 17px;
}
.guide-page .guide-hero.v40-hero > .v40-hero-copy {
  min-width: 0;
}
.guide-page .guide-hero.v40-hero > figure.guide-media-hero {
  box-sizing: border-box;
  display: block;
  align-self: center;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  height: auto;
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(22, 58, 95, .12);
  background: #eef5fb;
}
.guide-page .guide-hero.v40-hero > figure.guide-media-hero img {
  display: block;
  width: 100%;
  height: clamp(230px, 22vw, 330px);
  min-height: 0;
  max-height: 330px;
  object-fit: cover;
}
@media (max-width: 900px) {
  .guide-page .guide-hero.v40-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding-top: 22px;
    padding-bottom: 14px;
  }
  .guide-page .guide-hero.v40-hero > figure.guide-media-hero {
    order: -1;
    align-self: stretch;
  }
  .guide-page .guide-hero.v40-hero > .v40-hero-copy {
    order: 0;
    width: 100%;
  }
  .guide-page .guide-hero.v40-hero > figure.guide-media-hero img {
    height: clamp(170px, 42vw, 270px);
    max-height: 270px;
  }
}
@media (max-width: 620px) {
  .guide-page .guide-hero.v40-hero {
    gap: 16px;
    padding-top: 18px;
    padding-bottom: 12px;
  }
  .guide-page .guide-hero.v40-hero > figure.guide-media-hero {
    border-radius: 16px;
  }
  .guide-page .guide-hero.v40-hero > figure.guide-media-hero img {
    height: clamp(150px, 48vw, 210px);
    max-height: 210px;
  }
}
