/* Edition treatment of Aspect's featured-post slider. */
.mm-edition .edition-slider {
  display: block;
  min-width: 0;
  container: edition-slider / inline-size;
  color: var(--edition-ink);
}
.mm-edition .section-tags + .edition-slider {
  margin-block-start: calc(var(--edition-front-inset) - var(--layout--gap));
}
.edition-slider__folio {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 32px;
  margin: 0 0 clamp(14px, 1.35cqi, 24px);
  padding: 0 0 3px;
  border-block-end: 1px solid var(--edition-ink);
}
.edition-slider__folio h2 {
  margin: 0;
  font: 600 .84rem/1.3 Geist, system-ui, sans-serif;
  letter-spacing: .035em;
}
.edition-slider__controls {
  display: flex;
  align-items: center;
  gap: 2px;
}
.edition-slider:not(:has(.swiper-initialized)) .edition-slider__controls {
  visibility: hidden;
}
.edition-slider__count {
  min-width: 3.25em;
  color: var(--edition-muted);
  font: 510 .79rem/1.4 Geist, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.edition-slider__count [data-edition-slide-current] {
  color: var(--edition-ink);
  font-weight: 650;
}
.mm-edition .edition-slider__controls .slider-button {
  position: static;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  transform: none;
  opacity: 1;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--edition-ink);
  box-shadow: none;
}
.mm-edition .edition-slider__controls .slider-button:is(:hover, :focus-visible) {
  background: var(--edition-surface);
}
.mm-edition .edition-slider__controls .slider-button:disabled { color: var(--edition-muted); }
.mm-edition .edition-slider .swiper {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
}
.edition-slider .swiper:not(.swiper-initialized) {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.edition-slider .swiper-slide {
  height: auto;
  min-width: 0;
  scroll-snap-align: start;
}
.mm-edition .edition-slider .swiper-wrapper {
  height: auto;
  align-items: stretch;
}
.edition-slider .swiper-slide > .edition-slide { height: 100%; }
.edition-slide {
  display: grid;
  grid-template-columns: minmax(0, .74fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 3.2cqi, 62px);
  width: 100%;
}
.edition-slide__copy { min-width: 0; padding-block: 6px; }
.edition-slide__meta,
.edition-slide__access {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 14px;
  color: var(--edition-muted);
  font: 470 .8rem/1.4 Geist, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.edition-slide__tag {
  color: var(--edition-ink);
  text-decoration: none;
  font-weight: 650;
}
.edition-slide__meta time { white-space: nowrap; }
.mm-edition .edition-slide .edition-slide__title {
  margin: clamp(12px, 1.05cqi, 19px) 0 0;
  color: var(--edition-ink);
  font-family: var(--edition-display);
  /* The site's legacy injected card rules force all card headings to 16px. */
  font-size: clamp(2.05rem, 3.45cqi, 3.8rem) !important;
  font-weight: 400 !important;
  line-height: 1.075 !important;
  letter-spacing: -.032em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.edition-slide__title > a { color: inherit; text-decoration: none; }
.edition-slider .edition-slide :is(.edition-slide__tag, .edition-slide__title > a):hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .13em;
}
.edition-slide__title > a:focus-visible { outline-offset: 1px; }
.edition-slide__excerpt {
  max-width: 56ch;
  margin: clamp(12px, 1.3cqi, 24px) 0 0;
  color: var(--edition-muted);
  font: 440 clamp(.97rem, 1.18cqi, 1.15rem)/1.52 Geist, system-ui, sans-serif;
  overflow-wrap: anywhere;
}
.edition-slide__access { align-items: center; gap: 6px; margin: 14px 0 0; }
.edition-slide__access svg { width: 1em; height: 1em; }
.edition-slide__media { min-width: 0; margin: 0; }
.edition-slide__frame {
  position: relative;
  overflow: hidden;
  height: clamp(235px, min(35cqi, 50svh), 540px);
  background: var(--edition-surface);
}
.edition-slide__frame > img,
.edition-slide__frame :is(.post-featured-video, video, iframe, .kg-video-container) {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}
.edition-slide__frame > img { object-position: center 36%; }
.edition-slide__frame .post-featured-video { position: absolute; inset: 0; }
.edition-slide__frame .post-featured-video figcaption,
.edition-slide__media:has(.post-featured-video) > figcaption { display: none; }
.edition-slide__photo-link { position: absolute; inset: 0; z-index: 1; }
.edition-slide__media > figcaption {
  margin-block-start: 6px;
  color: var(--edition-muted);
  font: 450 .75rem/1.45 Geist, system-ui, sans-serif;
  text-align: start;
  overflow-wrap: anywhere;
}
.edition-slide__media > figcaption :is(a, p) { margin: 0; color: inherit; font: inherit; }
.edition-slide__media:not(:has(.edition-slide__frame > img, .post-featured-video)) { display: none; }
.edition-slide:not(:has(.edition-slide__frame > img, .post-featured-video)) {
  grid-template-columns: minmax(0, 1fr);
  min-height: clamp(170px, 28svh, 300px);
}
.edition-slide:not(:has(.edition-slide__frame > img, .post-featured-video)) .edition-slide__copy { max-width: 64rem; }
@container edition-slider (max-width: 44rem) {
  .edition-slider__folio { margin-bottom: 15px; }
  .edition-slider .edition-slide {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
  }
  .edition-slide__copy { display: contents; }
  .edition-slide__meta { order: 0; }
  .mm-edition .edition-slide .edition-slide__title {
    order: 1;
    margin: -5px 0 0;
    font-size: clamp(1.83rem, 6.9cqi, 2.65rem) !important;
  }
  .edition-slide__media { order: 2; }
  .edition-slide__frame { height: auto; aspect-ratio: 21 / 9; }
  .edition-slide__excerpt { order: 3; margin: 0; }
  .edition-slide__access { order: 4; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .edition-slider .swiper-wrapper { transition-duration: 0s !important; }
}
