/* NOSTALGEEK — Uncropped editorial thumbnails V2
   No content/images changed. Supersedes legacy framing JS after its safe opt-out.
   Vignettes display entire authentic image at intrinsic ratio, mobile + desktop. */
:is(#news.retro-magazine,body.magazine-page) .editorial-story:not(.editorial-story--without-media) {
  --ng-visual-col:clamp(132px,15vw,205px);
  min-width:0!important;
}
html body.magazine-page section.editorial-feature-grid>.editorial-story--lead:not(.editorial-story--without-media) {
  display:flex!important;flex-direction:column!important;
  grid-column:1!important;grid-row:1/span 2!important;
}
html body.magazine-page section.editorial-feature-grid>.editorial-story--secondary:not(.editorial-story--without-media),
html body.magazine-page .editorial-latest-grid>.editorial-story:not(.editorial-story--without-media) {
  display:grid!important;grid-template-columns:var(--ng-visual-col) minmax(0,1fr)!important;
  align-items:stretch!important;column-gap:0!important;
}
:is(#news.retro-magazine,body.magazine-page) .editorial-story:not(.editorial-story--without-media)>.editorial-cover-link {
  position:relative!important;inset:auto!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  height:auto!important;min-height:175px!important;max-height:none!important;
  aspect-ratio:auto!important;
  margin:0!important;padding:14px!important;
  border-radius:0!important;overflow:visible!important;
  align-self:stretch!important;
  background:#efe9e2!important;
}
/* Its 'soft background' was the apparent cropped image. Remove it on card thumbnails;
   the genuine foreground image remains, never zoomed or stretched. */
:is(#news.retro-magazine,body.magazine-page) .editorial-story .editorial-cover-link .news-image-backdrop {
  display:none!important;
}
:is(#news.retro-magazine,body.magazine-page) .editorial-story .editorial-cover-link .news-visual.has-image {
  display:flex!important;align-items:center!important;justify-content:center!important;
  position:relative!important;inset:auto!important;
  flex:0 1 auto!important;
  width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;
  aspect-ratio:auto!important;overflow:visible!important;
  border:0!important;background:transparent!important;transform:none!important;
}
:is(#news.retro-magazine,body.magazine-page) .editorial-story .editorial-cover-link img:not(.news-image-backdrop),
:is(#news.retro-magazine,body.magazine-page) .editorial-story .editorial-cover-link .news-visual.has-image img.news-image-main {
  position:static!important;inset:auto!important;
  display:block!important;
  flex:0 1 auto!important;
  width:auto!important;height:auto!important;
  min-width:0!important;min-height:0!important;
  max-width:100%!important;max-height:245px!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;object-position:center center!important;
  padding:0!important;margin:auto!important;
  border:0!important;background:transparent!important;transform:none!important;
  clip-path:none!important;
}
html body.magazine-page section.editorial-feature-grid>.editorial-story--lead .editorial-cover-link {
  min-height:275px!important;height:auto!important;max-height:none!important;
  padding:24px!important;
}
html body.magazine-page section.editorial-feature-grid>.editorial-story--lead .editorial-cover-link img:not(.news-image-backdrop) {
  max-height:330px!important;
}
html body.magazine-page section.editorial-feature-grid>.editorial-story--secondary .editorial-cover-link,
html body.magazine-page .editorial-latest-grid .editorial-cover-link {
  min-height:190px!important;
}
html body.magazine-page .editorial-story--without-media {
  display:flex!important;flex-direction:column!important;grid-column:auto!important;grid-row:auto!important;
}
#news.retro-magazine #newsGrid .editorial-story:not(.editorial-story--without-media) {
  display:grid!important;
  grid-template-columns:var(--ng-visual-col) minmax(0,1fr)!important;
  align-items:stretch!important;column-gap:0!important;
}
#news.retro-magazine #newsGrid .editorial-story--lead:not(.editorial-story--without-media) {
  --ng-visual-col:clamp(150px,20vw,218px);
}
#news.retro-magazine #newsGrid .editorial-cover-link {
  min-height:175px!important;
}
@media(max-width:850px) {
  :is(#news.retro-magazine,body.magazine-page) .editorial-story:not(.editorial-story--without-media) {
    --ng-visual-col:clamp(100px,26vw,145px);
  }
  html body.magazine-page section.editorial-feature-grid {
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto!important;
  }
  html body.magazine-page section.editorial-feature-grid>.editorial-story--lead:not(.editorial-story--without-media) {
    grid-column:1!important;grid-row:auto!important;
  }
  html body.magazine-page section.editorial-feature-grid>.editorial-story--secondary:not(.editorial-story--without-media) {
    grid-column:1!important;
  }
  html body.magazine-page .editorial-latest-grid {grid-template-columns:minmax(0,1fr)!important}
  #news.retro-magazine #newsGrid .editorial-story--lead:not(.editorial-story--without-media) {--ng-visual-col:clamp(110px,28vw,150px)}
  :is(#news.retro-magazine,body.magazine-page) .editorial-story .editorial-cover-link img:not(.news-image-backdrop) {
    max-height:205px!important;
  }
}
@media(max-width:430px) {
  :is(#news.retro-magazine,body.magazine-page) .editorial-story:not(.editorial-story--without-media) {
    --ng-visual-col:clamp(98px,27vw,120px);
  }
  :is(#news.retro-magazine,body.magazine-page) .editorial-story:not(.editorial-story--without-media)>.editorial-cover-link {
    min-height:145px!important;padding:9px!important;
  }
  html body.magazine-page section.editorial-feature-grid>.editorial-story--lead .editorial-cover-link {
    min-height:245px!important;padding:20px!important;
  }
  html body.magazine-page section.editorial-feature-grid>.editorial-story--lead .editorial-cover-link img:not(.news-image-backdrop) {
    max-height:295px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  :is(#news.retro-magazine,body.magazine-page) .editorial-story {transform:none!important;transition:none!important}
}
