/* Show the same composition in the selector as in the enlarged product gallery. */
.replica-pdp .product-photos .gallery-thumbs button img {
  object-fit: contain;
}

/* Keep adjacent construction photos and technical drawings in comparable frames. */
.de-guides .de-module .de-figures {
  align-items: start;
}
.de-guides .de-module .de-figures:has(> figure:nth-child(2):last-child) {
  max-width: 55rem;
}
.de-guides .de-module .de-figures > figure img {
  width: 100%;
  height: clamp(11rem, 21vw, 19rem);
  object-fit: scale-down;
  background: #f6f7f7;
}
.de-guides .de-module .de-figures > figure:only-child {
  width: fit-content;
  max-width: min(100%, 33rem);
}
.de-guides .de-module .de-figures > figure:only-child img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 21rem;
}
.de-guides .de-module .de-figures > figure:only-child figcaption {
  max-width: 47ch;
}

/* Use the source resolution for finish samples and small reference photographs. */
.b2-guides .de-module article.b2-card figure img {
  object-fit: scale-down;
}
.b2-guides .de-module .b2-grid > figure.b2-figure img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 21rem;
}
@media (min-width: 701px) {
  .b2-guides .de-module .b2-grid:has(> figure.b2-figure:first-child) {
    grid-template-columns: fit-content(24rem) minmax(0, 1fr);
  }
  .b2-guides .de-module .b2-grid > figure.b2-figure {
    max-width: 24rem;
  }
}
