/* KVANTYRA MEDIA LAYOUT V129 START */

/*
  Root cause fixed:
  V128 gave the media an explicit height while the surrounding card remained
  a shrinkable grid item inside a fixed-height scroll grid. Chromium/WebKit
  collapsed the card itself to its border height, so the image and copy
  overflowed outside it and the next grid section was painted on top.

  The card is now a max-content flex column. Its grid track therefore includes
  the full cover and copy height on phones and tablets.
*/
#kvTrendsV125QuickRepeat .kv-trends-v125-card{
  display:flex!important;
  flex-direction:column!important;
  flex:0 0 auto!important;
  width:100%!important;
  min-width:0!important;
  height:max-content!important;
  min-height:max-content!important;
  max-height:none!important;
  overflow:hidden!important;
  align-self:start!important;
}

#kvTrendsV125QuickRepeat .kv-trends-v125-media{
  display:flex!important;
  flex:0 0 auto!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-width:0!important;
  min-height:220px!important;
  height:auto!important;
  max-height:none!important;
  overflow:hidden!important;
}

#kvTrendsV125QuickRepeat .kv-trends-v125-copy{
  display:block!important;
  flex:0 0 auto!important;
  width:100%!important;
  min-width:0!important;
}

#kvTrendsV125QuickRepeat .kv-trends-v125-media img,
#kvTrendsV125QuickRepeat .kv-trends-v125-media video{
  display:block!important;
  flex:0 0 auto!important;
  width:auto!important;
  max-width:100%!important;
  height:auto!important;
  max-height:72svh!important;
  object-fit:contain!important;
  object-position:center center!important;
  background:#090a17!important;
}

#kvTrendsV125QuickRepeat .kv-trends-v125-media video{
  width:100%!important;
}

/* Prevent scroll restoration/anchoring from skipping the restored cover. */
#kvTrendsV125QuickRepeat > .kv-trends-v125-shell,
#kvTrendsV125QuickRepeat .kv-trends-v125-card,
#kvTrendsV125QuickRepeat .kv-trends-v125-media,
#kvTrendsV125QuickRepeat .kv-trends-v125-copy{
  overflow-anchor:none!important;
}

@media(max-width:600px){
  #kvTrendsV125QuickRepeat .kv-trends-v125-media{
    min-height:190px!important;
  }

  #kvTrendsV125QuickRepeat .kv-trends-v125-media img,
  #kvTrendsV125QuickRepeat .kv-trends-v125-media video{
    max-height:72svh!important;
  }
}

/* KVANTYRA MEDIA LAYOUT V129 END */
