header.section-header .section-header-left .section-header-search{display:inline-flex;align-items:center;gap:.55em;width:auto;white-space:nowrap}
header.section-header .section-header-left .section-header-search span{display:inline}
header.section-header .section-header-menu-bottom{min-width:0}
header.section-header .section-header-menu-box-list a{overflow-wrap:break-word;word-break:normal}
.section-footer-links-list-title{display:inline-block}
@media(max-width:760px){
 header.section-header .section-header-left .section-header-search span{display:none}
 header.section-header .section-header-left .section-header-search{justify-content:center}
 header.section-header .section-header-menu-bottom{row-gap:1.4rem}
}


/* Use the photo frame as the crop boundary for cards. Preserve the full sample on its product page. */
#catalog-results[data-compact-catalog] .section-c06-element-img,
.hm-p-card img,
.section-c01-swiper .swiper-c01-slide[data-catalog-portrait] > .swiper-c01-slide-img {
  object-fit: cover;
  object-position: center;
}

.hm-ref-single .section-single-product-left .hm-p-sample > a:not(.hm-bp-link) {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  background: transparent;
}

.hm-ref-single .section-single-product-left .hm-p-sample img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: clamp(18rem, 58vh, 38rem);
  object-fit: contain;
}

.hm-ref-single .section-single-product-left .hm-photo-disclosure {
  text-align: center;
}

.hm-ref-single .section-single-product-left .hm-photo-disclosure a:not(.hm-bp-link) {
  display: inline;
  text-decoration: underline;
  background: transparent;
}

.section-c07-box-img img[src*="/roof-application-"] {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* A brochure cover has a portrait format. Match its frame so the title stays visible. */
.hm-ref-guide .section-c14-element-box-img {
  display: block;
  height: auto;
  aspect-ratio: 530 / 750;
  background: transparent;
}
.hm-ref-guide .section-c14-element-box-img img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 530 / 750;
  object-fit: cover;
}
