/* 2026-11-23 | Homepage editorial sections only.
   Hide short descriptions on preview cards, show complete article titles,
   and make adjacent category panels equally tall. Do not touch archives,
   single posts, sidebar widgets, gallery photos or video controls. */
body.home .home-wrap .primary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}
body.home .home-wrap .primary > .block-post-wrap-item,
body.home .home-wrap .primary > .block-post-wrap-item:nth-child(n) {
  float: none !important;
  width: auto !important;
  min-width: 0;
  height: 100%;
  margin: 0 !important;
  box-sizing: border-box;
}
body.home .home-wrap .primary > .cboth {
  display: none !important;
}
/* Short summaries remain in WordPress, but are not shown on homepage cards. */
body.home .home-wrap .block-post-wrap-item .post1-item-des {
  display: none !important;
}
/* A two-line minimum aligns titles under adjoining thumbnails.
   Long titles may continue onto a third line rather than being cut off. */
body.home .home-wrap .block-post-wrap-item .post1-item-title {
  max-height: none !important;
  height: auto !important;
  min-height: 0;
  line-height: 20px;
  overflow: visible !important;
}
body.home .home-wrap .block-post-wrap-item .post1-item-title a {
  display: block;
  min-height: 40px;
  height: auto !important;
  max-height: none !important;
  line-height: 20px;
  white-space: normal !important;
  text-overflow: clip !important;
  overflow: visible !important;
  overflow-wrap: anywhere;
  word-break: normal;
}
/* Secondary article lists also keep full text, without ellipsis. */
body.home .home-wrap .block-post-wrap-item .post1-item-list,
body.home .home-wrap .block-post-wrap-item .post1-item-list a {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  white-space: normal !important;
  text-overflow: clip !important;
  line-height: 20px;
  overflow-wrap: anywhere;
}
/* Photo-left compact card had a legacy 40px title clipping limit. */
body.home .home-wrap .block-post-wrap-item .post4-item-info .post1-item-title {
  max-height: none !important;
  min-height: 40px;
}
@media (max-width: 890px) {
  body.home .home-wrap .primary {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Original left/right editorial order: the legacy HMHCG theme deliberately
   alternated its float direction every second pair of category sections.
   Keep that approved reading layout while using equal-height grid rows. */
@media (min-width: 891px) {
  body.home .home-wrap .primary { grid-auto-flow: row dense; }
  body.home .home-wrap .primary > .block-post-wrap-item:nth-child(6n + 4) { grid-column: 2; }
  body.home .home-wrap .primary > .block-post-wrap-item:nth-child(6n + 5) { grid-column: 1; }
}
