.post-ads {
  --soft: color-mix(in srgb, var(--ink) 62%, transparent);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2);
}
.post-ad { padding: 32px 20px 28px; background: var(--paper-2); }
.post-ad > h2 { padding-inline: 8px; }
.post-ad > h2 {
  margin: 0 0 1.25rem;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.6;
  text-transform: uppercase;
}
.post-ad > h2 .post-ad-pr { margin-inline-start: .5em; vertical-align: .1em; }
.post-ad-pr {
  display: inline-block;
  padding: .2em .6em;
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--text-xs);
  letter-spacing: .05em;
  line-height: 1.2;
}
.post-ad-card { margin: 0; text-align: center; }
.post-ad-banner { display: flex; justify-content: center; align-items: center; min-block-size: 250px; }
.post-ad-banner > a { display: inline-block; max-inline-size: 100%; transition: opacity .35s var(--ease-out); }
@media (hover: hover) { .post-ad-banner > a:hover { opacity: .8; } }
.post-ad-banner > a > img { display: block; max-inline-size: 100%; block-size: auto; }
.post-ad .post-ad-banner > a > img[width="300"] { inline-size: 300px; }
.post-ad .post-ad-banner > a > img[width="250"] { inline-size: 250px; }
.post-ad .post-ad-banner > a > img[width="234"] { inline-size: 234px; }
.post-ad .post-ad-banner > a > img[width="468"] { inline-size: 468px; }
.post-ad-banner > img[width="1"] { position: absolute; inline-size: 1px; block-size: 1px; }
.post-ad .post-ad-card figcaption,
.entry[data-post] .post-ad .carousel .post-ad-card figcaption { margin-block-start: 1rem; color: var(--soft); font-size: 12px; line-height: 1.7; text-align: center; }

.post-ad .carousel { margin: 0; }
.post-ad .carousel > ul { gap: 0; }
.post-ad .carousel > ul > li { flex: 0 0 100%; inline-size: 100%; }
.post-ad .carousel img { block-size: auto; max-inline-size: 100%; aspect-ratio: auto; object-fit: initial; }
.post-ad .carousel > [role="group"] { justify-content: center; margin-block-start: 1.25rem; gap: 20px; }

.entry[data-post] > .post-ads { margin-block: var(--space-3) 0; max-inline-size: min(var(--column), 30rem); }

@media (prefers-reduced-motion: reduce) {
  .post-ad-banner > a { transition: none; }
}

@media (max-width: 767.98px) {
  .post-ads { gap: 0; }
  .entry[data-post] > .post-ads { margin: 0 calc(var(--section-pad-x) * -1); max-inline-size: none; }
  .post-ad { padding: var(--section-pad-y) var(--section-pad-x); }
  .post-ad > h2 { margin-block-end: var(--gap-heading); padding-inline: 0; }
  .post-ad .carousel { margin-inline: calc(var(--section-pad-x) * -1); }
  .post-ad .carousel > ul { gap: var(--gap-block); }
  .post-ad .carousel > [role="group"] { margin-block-start: var(--gap-block); }
  .post-ad .post-ad-card figcaption,
  .entry[data-post] .post-ad .carousel .post-ad-card figcaption { margin-block-start: var(--gap-block); }
}
