/* Mid Grey applies only to fossil tile wells, never photographic pixels or
   calibrated specimen viewer, My Collection editor canvases, site photography. */
html body :is(
 .lbps-db-species-image,.lbps-gua-species-image,.lbps-gaa-species-image,
 .lbps-species-image,.lbps-representative-image,.lbps-mc-image,
 .lbps-collection-specimen-image
) { --lbps-stp-card-bg:#777777; background-color:#777777 !important; }
html body :is(
 .lbps-db-species-image,.lbps-gua-species-image,.lbps-gaa-species-image,
 .lbps-species-image,.lbps-representative-image,.lbps-mc-image,
 .lbps-collection-specimen-image
) img:not([data-lbps-stp-theme="light-grey"]):not([data-lbps-stp-theme="charcoal"]) {
 background-color:transparent !important;
}
html body .lbps-specimen-gallery .lbps-specimen-thumbnail[data-lbps-btv-tile="1"] {
 background-color:#777777 !important;
 object-fit:contain !important;
}
/* Package A sets an attachment-specific theme on containing tile wells.
   Only the LISTING WELL is standard Mid Grey; the actual plate file, image
   pixels, and detail viewer remain unmodified. */
html body :is(
 .lbps-db-species-image,.lbps-gua-species-image,.lbps-gaa-species-image,
 .lbps-species-image,.lbps-representative-image,.lbps-mc-image,
 .lbps-collection-specimen-image
):has(img[data-lbps-stp-theme]) {
 --lbps-stp-card-bg:#777777 !important;
 background-color:#777777 !important;
}
