#av_top_wrapper,
#av_content_1_wrapper,
#av_content_2_wrapper {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 300px !important;
  margin: 1.5rem auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  text-align: center !important;
  clear: both;
}

#av_top_wrapper > div,
#av_content_1_wrapper > div,
#av_content_2_wrapper > div {
  width: 100%;
  max-width: 100%;
}

#av_top,
#av_content_1,
#av_content_2 {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  line-height: 0;
}

#av_top > div,
#av_content_1 > div,
#av_content_2 > div,
#av_top iframe,
#av_content_1 iframe,
#av_content_2 iframe {
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Inside a CSS grid of cards the box must span the whole row. */
.grid > #av_top_wrapper,
.grid > #av_content_1_wrapper,
.grid > #av_content_2_wrapper {
  grid-column: 1 / -1;
}

/* Anchor ads are disabled site-wide so they can never cover the header or display ads. */
#av_anchor,
#av_anchor_wrapper,
[id^="av_anchor"] {
  display: none !important;
}

@media (max-width: 767px) {
  #av_top_wrapper,
  #av_content_1_wrapper,
  #av_content_2_wrapper {
    margin: 1rem auto !important;
  }
}
