/* Limit all changes to Contextual Related Posts on individual blog posts. */
body.single-post .crp_related {
  width:100%; max-width:100%; margin-block:2rem;
  --fbs-crp-gap:18px;
}
body.single-post .crp_related > h2,
body.single-post .crp_related > h3 {
  margin:0 0 1.2rem; font-size:clamp(1.35rem,2.5vw,1.85rem);
  line-height:1.25; color:#4b2135;
}
/* Standard CRP output is ul > li. Its modern styles can otherwise force a vertical list. */
body.single-post .crp_related > ul,
body.single-post .crp_related > ol,
body.single-post .crp_related ul.crp-list {
  display:grid!important;
  grid-template-columns:repeat(var(--fbs-crp-desktop,3),minmax(0,1fr))!important;
  gap:var(--fbs-crp-gap)!important;
  list-style:none!important; margin:0!important; padding:0!important;
  column-count:initial!important; width:100%!important;
}
body.single-post .crp_related > ul > li,
body.single-post .crp_related > ol > li,
body.single-post .crp_related ul.crp-list > li {
  position:relative!important; float:none!important; width:auto!important; min-width:0!important;
  max-width:none!important; height:auto!important; min-height:0!important;
  margin:0!important; padding:0!important; display:block!important;
  break-inside:avoid; overflow:hidden!important;
  background:#fff!important; border:1px solid #eee3e7!important;
  border-radius:12px!important;
  box-shadow:0 2px 10px rgba(64,21,40,.045)!important;
  transition:transform .2s ease,box-shadow .2s ease;
}
@media (hover:hover) {
 body.single-post .crp_related > ul > li:hover,
 body.single-post .crp_related > ol > li:hover {
   transform:translateY(-2px); box-shadow:0 8px 20px rgba(64,21,40,.1)!important;
 }
}
body.single-post .crp_related > ul > li > a,
body.single-post .crp_related > ol > li > a,
body.single-post .crp_related ul.crp-list > li > a,
body.single-post .crp_related a.crp_link {
  position:relative!important; display:flex!important; flex-direction:column!important;
  width:100%!important; height:auto!important; min-width:0!important;
  text-decoration:none!important; color:#392131!important;
  background:transparent!important; padding:0!important; margin:0!important;
}
body.single-post .crp_related li img,
body.single-post .crp_related a.crp_link img,
body.single-post .crp_related .crp_thumb img {
  display:block!important; width:100%!important; max-width:100%!important;
  height:auto!important; aspect-ratio:3/4!important; object-fit:cover!important;
  object-position:center top!important; border-radius:0!important;
  float:none!important; margin:0!important; box-shadow:none!important;
}
body.single-post .crp_related li .crp_thumb {
  display:block!important; width:100%!important; height:auto!important;
  float:none!important; position:static!important; margin:0!important;
}
body.single-post .crp_related .crp_title {
  display:-webkit-box!important; position:static!important;
  -webkit-box-orient:vertical; -webkit-line-clamp:2;
  line-clamp:2; overflow:hidden!important; text-overflow:ellipsis;
  padding:12px 12px 14px!important; margin:0!important;
  font-weight:600!important; font-size:clamp(.83rem,1.1vw,.98rem)!important;
  line-height:1.45!important; color:#442438!important;
  text-align:left!important; text-shadow:none!important;
  background:none!important; width:auto!important; height:auto!important;
}
body.single-post .crp_related .crp_excerpt { padding:0 12px 12px; font-size:.83rem; }
body.single-post .crp_related .crp_clear,
body.single-post .crp_related .crp_class_credit { grid-column:1/-1; }
@media(max-width:1024px) {
  body.single-post .crp_related > ul,
  body.single-post .crp_related > ol,
  body.single-post .crp_related ul.crp-list {
    grid-template-columns:repeat(var(--fbs-crp-tablet,2),minmax(0,1fr))!important;
  }
}
@media(max-width:600px) {
  body.single-post .crp_related {--fbs-crp-gap:10px;}
  body.single-post .crp_related > ul,
  body.single-post .crp_related > ol,
  body.single-post .crp_related ul.crp-list {
    grid-template-columns:repeat(var(--fbs-crp-mobile,2),minmax(0,1fr))!important;
  }
  body.single-post .crp_related .crp_title {
    padding:9px 9px 12px!important; font-size:.82rem!important;
  }
}
@media(prefers-reduced-motion:reduce) {
  body.single-post .crp_related li {transition:none!important;}
}
