/* =====================================================================
   WebAgent — uniform photo standard (load AFTER assets/css/style.css)
   One shared rule set for every page: all content photos share the same
   4:3 frame and are cropped to fill it (object-fit: cover), so nothing is
   stretched. Change --photo-ratio once to resize photos site-wide.
   ===================================================================== */
:root {
  --photo-ratio: 4 / 3;
  --avatar-size: 60px;
}

/* card photos (companies / services), news photos, agent photos, testimonial photos */
.img-box-a,
.img-box-b,
.card-img-d,
.testimonial-img {
  aspect-ratio: var(--photo-ratio);
  height: auto;
  overflow: hidden;
  position: relative;
}

.img-box-a img,
.img-box-b img,
.card-img-d img,
.testimonial-img img,
.img-a,
.img-b,
.img-d {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
}

/* small round author avatars */
.testimonial-avatar {
  width: var(--avatar-size) !important;
  height: var(--avatar-size) !important;
  object-fit: cover;
  border-radius: 50%;
}

/* ---- detail pages: single-page hero / gallery / article / about photos ---- */
.property-single img.img-fluid,
.property-single .carousel-item-b img,
.news-img-box img,
.about-img-box img,
.section-about img.img-fluid,
.agent-avatar-box img,
.carousel-item-b img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: var(--photo-ratio);
  object-fit: cover;
  object-position: center;
}
.news-img-box {
  max-width: 760px;
  margin: 0 auto;
}

/* small round avatars (author / comment / blockquote) */
img.agent-avatar,
.blockquote-footer img.agent-avatar,
.comment-avatar img {
  width: var(--avatar-size) !important;
  height: var(--avatar-size) !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
}
