/* =========================================================================
   ACF dynamic image cropping helpers.
   Any image rendered via dlfg_image() gets .dlfg-img and is cropped with
   object-fit: cover so a large client upload fills its box without
   stretching or breaking the section layout.
   ========================================================================= */

.dlfg-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Leadership / team photos — keep a stable square-ish frame and crop into it. */

.team-card__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.leader-card__photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}


.leader-card__photo .dlfg-img,
.team-card__photo .dlfg-img {
  object-position: top center;
}

/* LFG landing member photos already use a square frame; enforce the crop. */
.a-member__photo { overflow: hidden; }
.a-member__photo .dlfg-img { object-position: top center; }

/* Note: header/footer/hero logos are rendered WITHOUT the .dlfg-img class
   (dlfg_image $crop = false), so they keep their original theme styling. */
