/* Collector Briques 0.5.4: white media surfaces for all editorial and LEGO cards.
   Keep photographic heroes, cinematic universe tiles, and full-bleed galleries intact. */

/* Legacy content contains inline image opacity overrides; reset them without
   changing photographic overlays or whole-card opacity. */
body.cb-wp .cb30-original-content figure img {
  opacity: 1 !important;
}

/* The white backing must be on the media wrapper as well as the image, because
   transparent PNG/WebP products, contain-fitting and letterboxing expose it. */
body.cb-wp :is(
  .cb43-photo,
  .cb4-card-photo,
  .cb4-thumb,
  .cb6-cover,
  .cb64-photo,
  .cb31-card__image,
  .cb38-hub-card,
  .cb51-scenes__media,
  .cb45-set-card__media,
  .cb-card-media,
  .cb-set-card__media,
  .cb26-card-image,
  .cb-hp2026-lego-card__media,
  .cb6-card-link > img,
  .cb43-photo > img,
  .cb4-card-photo > img,
  .cb64-photo > img
) {
  background-color: #fff !important;
}

/* Image surfaces throughout WordPress-generated and legacy listing cards. */
body.cb-wp :is(
  .cb6-card,
  .cb4-card,
  .cb31-card,
  .cb38-hub-card,
  .cb43-card,
  .cb45-set-card,
  .cb64-card,
  .cb51-scenes__card,
  .cb-set-card,
  .cb-hp2026-lego-card
) :is(
  img,
  picture,
  figure,
  .cb-card-media,
  .cb4-card-photo,
  .cb43-photo,
  .cb64-photo,
  .cb51-scenes__media,
  .cb-set-card__media,
  .cb-hp2026-lego-card__media
) {
  background-color: #fff !important;
}

/* A few cards directly render images without a media wrapper. */
body.cb-wp :is(
  .cb6-card-link > img,
  .cb31-card__image,
  .cb38-hub-card > img,
  .cb38-hub-card > picture,
  .cb43-photo > img,
  .cb4-card-photo img,
  .cb4-thumb img,
  .cb64-photo img,
  .cb51-scenes__media img,
  .cb-card-media img,
  .cb-set-card__media img,
  .cb-hp2026-lego-card__media img
) {
  background-color: #fff !important;
}
