/* 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);
  }
}


/* Balance the Gặp Chúa and VIDEO homepage panels, 2026-11-23.
   Video's old 613px minimum produced empty space above the CTA and in
   the left card. Let the existing equal-height grid size to real content. */
body.home .home-wrap .ctct-home-video-card { min-height: 0; }
body.home .ctct-home-video-all { margin-top: 12px; }
body.home .ctct-home-video-related {
  margin-top: 9px;
  padding-top: 7px;
  border-top: 1px solid #e4d6c4;
}
body.home .ctct-home-video-related-item {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
}
body.home .ctct-home-video-related-item a {
  display: block;
  color: #762229;
  text-decoration: none;
  line-height: 20px;
  overflow-wrap: anywhere;
}
body.home .ctct-home-video-related-item a:hover,
body.home .ctct-home-video-related-item a:focus-visible { text-decoration: underline; }
body.home .ctct-home-video-related-item i { color:#8a2c31; margin-right: 5px; }
/* Keep the Gặp Chúa panel cream all the way to its bottom border.
   Spread previously wasted vertical space into usable article spacing. */
@media (min-width: 891px) {
  body.home .home-wrap .primary > .block-post-wrap-item:first-child {
    background-color: #F7EFE3 !important;
  }
  body.home .home-wrap .primary > .block-post-wrap-item:first-child .block-post-wrap-content {
    padding-bottom: 20px;
  }
  body.home .home-wrap .primary > .block-post-wrap-item:first-child .post1-item:nth-child(n+2) {
    margin-top: 18px;
  }
  body.home .home-wrap .primary > .block-post-wrap-item:first-child .post1-item-bottom {
    padding-top: 20px;
  }
  body.home .home-wrap .primary > .block-post-wrap-item:first-child .post1-item-list,
  body.home .home-wrap .primary > .block-post-wrap-item:first-child .post1-item-list a {
    line-height: 23px;
  }
}

/* Desktop spacing refinement: move the three Gặp Chúa related titles
   closer to the bottom border without cropping artwork or stretching cards.
   Smaller desktop and mobile already have natural compact spacing. */
@media (min-width: 1200px) {
  body.home .home-wrap .primary > .block-post-wrap-item:first-child .post1-item:nth-child(n+2) { margin-top: 30px; }
  body.home .home-wrap .primary > .block-post-wrap-item:first-child .post1-item-bottom { padding-top: 38px; }
}
