/* bwe-gif-crop.css — kill black letterbox bars from Vimeo gif exports.
   Applied with broad strokes: any <img> ending in .gif gets object-fit cover + scale.
   Background-image gif containers get explicit cover sizing.
   Specific tighter crops where a face/center matters more than fitting full frame. */

img[src$=".gif"], img[src*=".gif?"], img[src*=".gif&"] {
  object-fit: cover;
  object-position: center 38%;
  transform: scale(1.08);
  transform-origin: center 40%;
}

/* Common containers — ensure they clip and don't show the underlying bg color */
.fst, .pol-img, .recents-people img, .pr-img, .film-img,
.bwe-search-thumb-img, .bwe-result-sec-gif img, .bwe-recents-people img,
.bwe-demo-poly img, .gif-layer, .rw-cinematic-gif {
  background-color: #1a0e2a;
}

/* Hero rotating gif layers across people pages, journey, etc */
.gif-layer, .hero-rotating .gif-layer {
  background-size: cover !important;
  background-position: center !important;
  transform: scale(1.06);
}

/* Anywhere a gif sits inside a circle/avatar treatment */
.profile-avatar img, .avatar img, .pr-people img, .recents-people img,
.bwe-recents-people img {
  object-fit: cover;
  transform: scale(1.16);
  transform-origin: center 38%;
}
