/* History Go — Place photography framing.
   PlaceCard image/frontImage fill their visible frames edge-to-edge.
   Legacy popup, miniature and documentary before/after preserve full photos.
   QuizCard backs, People, brands and badges are unaffected. */

/* The landscape Place.image under the heading. */
body.hg-app #placeCard .pc-heading-hero #pcHeaderImage.pc-heading-image,
/* The 3:4 front side of the collectible PlaceCard only. */
body.hg-app #placeCard .pc-frontcard .pc-card-face-front > #pcFrontImage,
/* The legacy popup's principal documentary image. */
body.hg-app .hg-place-popup-v2 .hg-place-hero-media > .hg-place-hero-image,
/* Micro-place and miniature previews inherit the same place-photo contract. */
body.hg-app #placeCard.is-micro-place .pc-micro-media img,
body.hg-app #placeCard #pcMiniImg,
/* Paired historical photographs should also keep their full source composition. */
body.hg-app #placeCard .pc-sheet-canonical-before-after figure img {
  object-fit: contain !important;
  object-position: center center !important;
  background: linear-gradient(145deg, #1c2b35 0%, #0b121b 100%);
}

/* The photo's aspect ratio is preserved. QuizCard and round collection badges
   intentionally do not inherit this documentary-photo policy. */

/* Give wide overview photographs enough height on tablet/desktop.
   At the old 205px cap, a complete 16:9 source could shrink into a tiny
   center strip. Keep mobile layout and the sticky header's own measured
   collapse geometry unchanged. Never enlarge the bitmap past its frame. */
@media (min-width: 721px) {
  body.hg-app #placeCard.is-unified-place.is-place-sheet-phase1
    .pc-heading-hero.has-photo-source:not(.is-collapsed) {
    min-height: clamp(340px, 48vw, 530px);
  }
}

/* Photo areas in PlaceCard must never show letterbox gutters.
   The main landscape hero and the collectible card's photo face fill the
   actual frame on iPad, phone and desktop. The QuizCard back is unchanged.
   This intentionally supersedes the historical 'contain' rule above. */
body.hg-app #placeCard .pc-heading-hero #pcHeaderImage.pc-heading-image,
body.hg-app #placeCard .pc-frontcard .pc-card-face-front > #pcFrontImage{
  width:100%;
  height:100%;
  object-fit:cover !important;
  object-position:var(--hg-place-media-position, center center) !important;
}
