/* Keep the equipment above its label and use the space available inside the tile. */
#product-directory.us-ref-catalogue .us-ref-tiles {
  grid-auto-rows: max(112px, var(--ref-tile-height, 112px));
}
#product-directory.us-ref-catalogue .us-ref-tiles .usn21-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
}
#product-directory.us-ref-catalogue .us-ref-tiles .usn21-card .usn21-photo {
  position: relative;
  inset: auto;
  min-height: 0;
  padding: 3px;
}
#product-directory.us-ref-catalogue .us-ref-tiles .usn21-photo img {
  position: static;
  width: 100%;
  height: 100% !important;
  min-height: 0;
  object-fit: contain !important;
  object-position: center;
  transform: none;
}
#product-directory.us-ref-catalogue .us-ref-tiles .usn21-photo svg {transform: none}
#product-directory.us-ref-catalogue .us-ref-tiles .usn21-card strong {
  position: relative;
  inset: auto;
  min-height: 0;
  background: linear-gradient(#fff, #f3f7fb);
}
#product-directory.us-ref-catalogue .us-ref-tiles .usn21-card strong::before {display: none}

.us-home05 #products .us-category05 .us-category-image05 img {
  padding: 3px !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  scale: none !important;
}
body .us-home05 .us-partner-logo05.elementor-widget-image img {object-fit: contain !important}
#us-ek-navigation09 .us-range-photo img {
  padding: 4px !important;
  object-fit: contain !important;
}
.uss-main :is(.ui-image, .ui-matrix-image) img {object-fit: contain !important}

/* The title has its own fade, so dark text treatment cannot obscure a photo. */
body .us-home05 #applications .hr23-ind a,
body .us-industries12 .us-industry-photo-tile {
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center stretch;
}
body .us-home05 #applications .hr23-ind a img,
body .us-industries12 .us-industry-photo-tile img {
  position: static;
  display: block;
  width: 100%;
  height: 100% !important;
  min-height: 0;
  aspect-ratio: 3 / 2;
  object-fit: contain !important;
  object-position: center;
}
body .us-home05 #applications .hr23-ind a::after,
body .us-industries12 .us-industry-photo-tile::after {display: none}
body .us-home05 #applications .hr23-ind a > span,
body .us-industries12 .us-industry-photo-tile > span {
  background: linear-gradient(#193957, #0b203c) !important;
}

.md14 .md14-image.md14-frame-reference {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  margin: 0;
}
.md14 .md14-frame-reference img,
.uss-main :is(.ui-image, .ui-matrix-image) img[src$="/md520-t2-frame.png"] {
  /* Remove the margins of the manufacturer render while retaining the enclosure. */
  object-view-box: inset(13% 31% 9% 31%);
  min-height: 0;
}
.md14 .md14-frame-reference figcaption {
  color: var(--ui-text, #142d4b);
  font-size: 14px;
  text-align: center;
}
