/* HWT R12G3: itinerary, attraction and editorial photograph media boxes. */
html body .day-photos img,
html body .hl-card > img,
html body .hl-japan-places .inspire img,
html body .hwt-route-journey-gallery__card img,
html body .hwt-legacy-day-photo img,
html body .gansu-journey-gallery__card img,
html body .v4-highlight-grid .v4-photo img,
html body .v4-day-photography img,
html body .v4-day-more img,
html body .v4-day-extra img,
html body .v4-gallery img,
html body .ctv-card-photo img,
html body .hc-tour-photo img,
html body .tour-card figure img,
html body .p2-card-visual img,
html body .jm-panel figure img,
html body .hc-story-photos img,
html body .gr001-shared-photo img,
html body .av2-story-photo img,
html body .av2-album figure img,
html body .v31-album-card img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 3 / 2 !important;
  object-fit: cover !important;
}

/* Match the media holder as well as its photograph. */
html body .ctv-card-photo,
html body.hwt-v32-home main.hwt-premium-home.hc-home .hc-tour-photo,
html body .gr001 .gr001-shared-photo {
  aspect-ratio: 3 / 2 !important;
  height: auto !important;
  min-height: 0 !important;
}

/* Existing home rules mark image heights important at higher specificity. */
html body.hwt-v32-home main.hwt-premium-home.hc-home .hc-tour-photo img,
html body.hwt-v32-home main.hwt-premium-home.hc-home .gr001 .gr001-shared-photo img {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 3 / 2 !important;
  object-fit: cover !important;
}
