/* Banner #3: scoped full-width rendering in /news/ and company directories.
   Fill the available ad slot without modifying or cropping creative files. */

/* News feed: compact 1056 x 91 banner follows the third news card. */
.news-feed > .wide-page-ad-slot.wide-page-ad-slot--banner3-compact {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
}
.news-feed > .wide-page-ad-slot--banner3-compact .wide-ad.wide-page-ad {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 1056 / 91;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}
.news-feed > .wide-page-ad-slot--banner3-compact .wide-ad.wide-page-ad img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  border: 0;
  border-radius: 0;
  /* The shared banner template has inline contain; override it on news only. */
  object-fit: fill !important;
}

/* Company catalog: use the approved 1440x160 slot and fill its width.
   No changes to other positions, creative images, or record heights. */
.directory-layout .producer-list > .producer-card.producer-card--advert-banner3-catalog {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-height: 0;
  max-height: none;
  height: auto;
  aspect-ratio: 1440 / 160;
  padding: 0;
  margin: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}
.directory-layout .producer-list > .producer-card.producer-card--advert-banner3-catalog > img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: 100%;
  border: 0;
  border-radius: 0;
  object-fit: fill;
}

/* Media hub /news/media/: stretch banner #3 end-to-end across its compact slot.
   The shared template has inline object-fit: contain, so this scoped image
   override is required. Legacy banner positions remain unchanged. */
.home-main.media-hub--compact-ad .page-grid .wide-page-ad-slot.wide-page-ad-slot--banner3-compact {
  width: 100%;
  min-width: 0;
  max-width: none;
  margin-inline: 0;
}
.home-main.media-hub--compact-ad .page-grid .wide-page-ad-slot--banner3-compact .wide-ad.wide-page-ad {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 1056 / 91;
  padding: 0;
  margin-inline: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}
.home-main.media-hub--compact-ad .page-grid .wide-page-ad-slot--banner3-compact .wide-ad.wide-page-ad img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  border: 0;
  border-radius: 0;
  object-fit: fill !important;
}
