/* R99: compact photo cards, edge-to-edge images and whole-word wrapping. */
html[data-theme] #home-categories .homeV2CategoryPhoto img {
  object-fit:cover!important;object-position:center!important;
}
@media(max-width:780px) {
  html[data-theme] body[data-category="home"] .homeV2.homeV2--realisticV5 #home-categories .homeV2MobileQuickNav.homeV2CategoryRail {
    grid-auto-columns:calc((100% - 16px)/3)!important;gap:8px!important;
    align-items:stretch!important;
  }
  html[data-theme] body[data-category="home"] .homeV2.homeV2--realisticV5 #home-categories .homeV2MobileQuickNav.homeV2CategoryRail > a {
    min-height:0!important;height:auto!important;max-height:none!important;border-radius:12px!important;
  }
  html[data-theme] body[data-category="home"] .homeV2.homeV2--realisticV5 #home-categories .homeV2CategoryRail .homeV2CategoryPhoto {
    height:auto!important;min-height:0!important;aspect-ratio:4/3!important;
  }
  html[data-theme] body[data-category="home"] .homeV2.homeV2--realisticV5 #home-categories .homeV2CategoryRail .homeV2CategoryName {
    padding:8px 4px 9px!important;font-size:12px!important;font-weight:650!important;
    line-height:1.35!important;letter-spacing:-.015em!important;white-space:normal!important;
    hyphens:none!important;overflow-wrap:normal!important;word-break:normal!important;
    -webkit-line-clamp:unset!important;overflow:visible!important;
  }
  html[data-theme] body[data-category="home"] .homeV2.homeV2--realisticV5 #home-categories .homeV2AllCategories__item strong {
    hyphens:none!important;overflow-wrap:normal!important;word-break:normal!important;
  }
}
@media(max-width:374px) {
  html[data-theme] body[data-category="home"] .homeV2.homeV2--realisticV5 #home-categories .homeV2MobileQuickNav.homeV2CategoryRail {
    grid-auto-columns:calc((100% - 8px)/2)!important;
  }
}
html[data-theme] body[data-category="categories"] .categoryDirectoryV2 .categoryDirectoryV2__cardPhoto {
  width:100%!important;object-fit:cover!important;object-position:center!important;
}
html[data-theme] body[data-category="categories"] .categoryDirectoryV2 .categoryDirectoryV2__cardBody :is(strong,em,small) {
  hyphens:none!important;overflow-wrap:normal!important;word-break:normal!important;
}
