/* Give a 970px unit its own space on wide article layouts. */
@media (min-width: 1360px) {
  .article-layout {
    width: min(calc(100% - 2.2rem), 1360px);
    column-gap: 40px;
  }
}

.ad-shell--heading {
  container-type: inline-size;
}

.ad-heading-label {
  display: none;
  padding-top: 0.35rem;
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

.ad-slot--heading {
  display: none;
  margin: 0 auto 1.6rem;
}

.ad-slot--heading > .adsbygoogle {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
}

@media (max-width: 820px) {
  @container (min-width: 200px) {
    .ad-heading-label { display: block; }
    .ad-slot--heading { display: grid; width: 200px; height: 200px; }
  }

  @container (min-width: 250px) {
    .ad-slot--heading { width: 250px; height: 250px; }
  }

  @container (min-width: 300px) {
    .ad-slot--heading { width: 300px; height: 250px; }
  }
}

@media (width > 820px) {
  @container (min-width: 468px) {
    .ad-heading-label { display: block; }
    .ad-slot--heading { display: grid; width: 468px; height: 60px; }
  }

  @container (min-width: 728px) {
    .ad-slot--heading { width: 728px; height: 90px; }
  }

  @container (min-width: 970px) {
    .ad-slot--heading { width: 970px; height: 250px; }
  }
}

.ad-shell--heading:has(.adsbygoogle[data-ad-status="unfilled"]) {
  display: none;
}

.ad-shell--heading[data-ad-preview="true"] .ad-slot--heading {
  border: 1px dashed var(--muted);
  background: var(--accent-soft);
}

.ad-shell--heading[data-ad-preview="true"] .ad-slot--heading::after {
  content: "Advertentieruimte";
  color: var(--muted);
  font-size: 0.85rem;
}
