/* Portrait thumbnails keep the dog's eyes and ears inside the visible frame. */
main > .photo-grid .photo[data-pak-frame="face"] img,
.puppy-cards .puppy-card .card-photo img[alt="Ari"] {
  object-position: center top;
  transform-origin: center top;
}
main > .photo-grid .photo[data-pak-frame="portrait"] img {
  object-position: center 24%;
  transform-origin: center 24%;
}
main > .photo-grid .photo[data-pak-frame="lower"] img {
  object-position: center bottom;
  transform-origin: center bottom;
}
/* Stacked poses, posters and milestone boards depend on the complete photograph. */
main > .photo-grid .photo[data-pak-frame="full"] img {
  object-fit: contain;
  object-position: center;
  background: #090b0e;
}
main > .photo-grid .photo[data-pak-frame="full"]:hover img {
  transform: none;
}

/* The past-litter cards use direct images rather than the puppy-card wrapper. */
main .puppy-cards > article.card > a > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 30%;
}
#pak-litter-fallback.availability-empty > img {
  object-position: center 12%;
}

#content #pak-training .tr-photo-obedience img {
  object-position: center 12%;
}
@media (max-width: 540px) {
  #content #pak-training .tr-photo-puppy img {
    object-position: center 10%;
  }
  #content #pak-training .tr-photo-obedience img {
    object-position: center 10%;
  }
  #content #pak-training .tr-photo-sport img {
    object-position: center top;
  }
  #content #pak-training .tr-photo-obedience,
  #content #pak-training .tr-photo-sport {
    height: auto;
    aspect-ratio: 1.58;
  }
}
@media (min-width: 701px) {
  #main .pg-feature > img[src$="/caleesi-on-the-grass-sm.webp"] {
    object-position: center 10%;
  }
  .pak-blog-card img[src$="/caleesi-in-hand-lg.webp"] {
    /* This card has an inline focal point shared across screen sizes. */
    object-position: center 18% !important;
  }
  #main .pg-feature > img[src$="/captain-playtime-sm.webp"] {
    object-fit: contain;
    background: #090b0e;
  }
}
@media (max-width: 700px) {
  #main .pg-feature > img[src$="/macho-in-profile-sm.webp"] {
    object-fit: contain;
    background: #090b0e;
  }
}
@media (min-width: 501px) {
  .kh-topics img[src$="/caleesi-in-hand-lg.webp"] {
    object-position: center 18% !important;
  }
  .kh-topics img[src$="/captain-playtime-lg.webp"] {
    object-fit: contain;
    background: #090b0e;
  }
}
@media (max-width: 480px) {
  main > .feature > img[data-pak-frame="lineup"] {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 2;
    object-fit: contain;
  }
}
