/* Banner #3 only. Creative upload dimensions do not cap the surrounding column.
   Keep the legacy banner positions, classifieds and admin previews unchanged. */

/* Main page: same left and right edges as the sections above and below. */
.page-grid .home-wide-ad-slot .wide-ad.wide-ad--banner3-compact {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  aspect-ratio: 1056 / 91;
  height: auto;
}
.page-grid .home-wide-ad-slot .wide-ad.wide-ad--banner3-compact img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

/* Media: same width as the content sections, not 1056px in a wider column. */
.home-main.media-hub--compact-ad .page-grid .wide-page-ad-slot--banner3-compact .wide-page-ad {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 1056 / 91;
  margin-inline: 0;
}
.home-main.media-hub--compact-ad .page-grid .wide-page-ad-slot--banner3-compact .wide-page-ad img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

/* Company detail: same width as the information and map block above. */
.home-main > .container.page-stack > .wide-page-ad-slot.wide-page-ad-slot--banner3-wide .wide-ad.wide-page-ad {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 1240 / 100;
  margin-inline: 0;
}
.home-main > .container.page-stack > .wide-page-ad-slot.wide-page-ad-slot--banner3-wide .wide-ad.wide-page-ad img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

/* Supplier directory: fill the entire company row, but make the row short.
   This deliberately compresses the 776x176 creative vertically to meet the
   requested full-width / low-height placement without cropping its content. */
.producer-list--suppliers > .producer-card.producer-card--advert-banner3-catalog {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 0;
  min-height: 0;
  height: 112px;
  max-height: 112px;
  overflow: hidden;
}
.producer-list--suppliers > .producer-card.producer-card--advert-banner3-catalog img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: 100%;
  object-fit: fill;
}
@media (max-width: 640px) {
  .producer-list--suppliers > .producer-card.producer-card--advert-banner3-catalog {
    height: 72px;
    max-height: 72px;
  }
}
