/* Loaded only on the two explicitly corrected trainer/caballera profile pages.
   Existing genuine photo files and supplied ranch mark remain unchanged. */
.mgr-profile-photo-correction .profile-hero__image.mgr-wm::after,
.mgr-profile-photo-correction .profile-gallery > figure.mgr-wm::after {
  content: "Mendez Golden Ranch";
  inset: auto;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  height: auto;
  min-height: 52px;
  box-sizing: border-box;
  aspect-ratio: auto;
  padding: 38px 0 0;
  background: url("/assets/ranch-mark-clear.webp") center top / auto 34px no-repeat;
  color: #fff6e0;
  font: italic 14px/1.1 Georgia, serif;
  letter-spacing: .015em;
  text-align: center;
  text-shadow: 0 1px 3px #000, 0 0 5px #000;
  opacity: .9;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .55));
}
.mgr-profile-photo-correction .profile-gallery > figure.mgr-wm::after {
  bottom: 48px;
}
/* Even two-photo pair, instead of the old six-photo mosaic. */
.mgr-profile-photo-correction .profile-gallery--pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.mgr-profile-photo-correction .profile-gallery--pair figure:first-child {
  grid-column: auto;
  grid-row: auto;
}
.mgr-profile-photo-correction .profile-gallery--pair figure:first-child img {
  height: clamp(250px, 28vw, 440px);
}
@media (max-width: 620px) {
  .mgr-profile-photo-correction .profile-gallery--pair {
    grid-template-columns: minmax(0, 1fr);
  }
  .mgr-profile-photo-correction .profile-gallery--pair img,
  .mgr-profile-photo-correction .profile-gallery--pair figure:first-child img {
    height: clamp(300px, 85vw, 450px);
  }
}
/* Caballera's selected supplements are landscape originals. Preserve the full
   face/hat/horse composition rather than crop them to the old tall mosaic. */
.mgr-profile-photo-correction--caballera .profile-gallery--pair img,
.mgr-profile-photo-correction--caballera .profile-gallery--pair figure:first-child img {
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
