/**
 * Native text ads that AdButler delivers in an iframe. The loader adds
 * .skipta-native-ad-frame to the iframe; these rules undo theme spacing and
 * layout that exist for third-party iframes.
 */

/* Fill the slot, and drop the 15px vertical margin the theme gives every
   iframe on small screens: the slot already spaces the ad. */
iframe.skipta-native-ad-frame {
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
}

/* Detail pages centre the slot in a flex box, so each wrapper around the
   iframe shrinks to its content unless told to fill the slot. The Rec_1 slot
   is not matched here and keeps its 300px cap. */
.instream__post.leaderboard-728-dynamic div:has(.skipta-native-ad-frame) {
  width: 100%;
}

/* Inside the ad's own document, where the site stylesheets are copied: the
   stream wrapper's 10px bottom padding and the root scrollbar gutter only add
   blank space to an ad that never scrolls. */
.skipta-native-ad.stream__wrapper {
  padding-bottom: 0;
}

html:has(.skipta-native-ad) {
  scrollbar-gutter: auto;
}
