/* Full-width Facebook post cards: no nested scrolling panel. */
.facebook-post-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin-top:28px;
}
.facebook-post-card{
  background:#fff;
  border:1px solid #dfe4eb;
  border-radius:16px;
  padding:24px 22px;
  box-shadow:0 8px 24px rgba(20,42,70,.06);
  display:flex;
  flex-direction:column;
  min-height:250px;
}
.facebook-post-card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}
.facebook-post-label{
  color:#b4232d;
  font-size:.82rem;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.facebook-post-time{
  color:#7a8492;
  font-size:.82rem;
}
.facebook-post-card h3{
  color:#132b4f;
  font-size:1.16rem;
  line-height:1.45;
  margin:0 0 12px;
}
.facebook-post-card p{
  color:#5f6c7b;
  font-size:.98rem;
  line-height:1.65;
  margin:0 0 20px;
}
.facebook-post-card a{
  color:#7c2cff;
  font-weight:700;
  margin-top:auto;
  text-decoration:none;
}
.facebook-post-card a:hover,
.facebook-post-card a:focus-visible{
  text-decoration:underline;
}
@media(max-width:700px){
  .facebook-post-list{
    grid-template-columns:1fr;
    gap:14px;
    margin-top:20px;
  }
  .facebook-post-card{
    padding:20px 18px;
    min-height:0;
  }
  .facebook-post-card h3{
    font-size:1.08rem;
  }
}
.facebook-post-media{
  display:block;
  width:100%;
  aspect-ratio:4/5;
  margin:0 0 18px;
  border-radius:12px;
  overflow:hidden;
  background:#e9eef4;
}
.facebook-post-media img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
}
.facebook-post-media:hover img,
.facebook-post-media:focus-visible img{
  transform:scale(1.015);
}
.facebook-post-media img{
  transition:transform .2s ease;
}


/* Mobile containment: Facebook images and copy must never widen the page. */
.facebook-post-list,
.facebook-post-card,
.facebook-post-media{
  box-sizing:border-box;
  min-width:0;
  max-width:100%;
}
.facebook-post-list{
  width:100%;
  overflow:hidden;
}
.facebook-post-card{
  width:100%;
  overflow:hidden;
}
.facebook-post-card h3,
.facebook-post-card p{
  max-width:100%;
  overflow-wrap:anywhere;
}
.facebook-post-media{
  flex:none;
  contain:inline-size;
}
.facebook-post-media img{
  max-width:100%!important;
  min-width:0!important;
}
@media(max-width:700px){
  .facebook-post-list{
    width:100%!important;
    max-width:100%!important;
  }
  .facebook-post-card{
    padding:14px 12px;
    border-radius:14px;
  }
  .facebook-post-media{
    width:100%!important;
    max-width:100%!important;
    aspect-ratio:4/5;
    margin-bottom:14px;
  }
  .facebook-post-card-top{
    margin-bottom:10px;
  }
  .facebook-post-card h3{
    font-size:1rem;
    line-height:1.42;
    margin-bottom:8px;
  }
  .facebook-post-card p{
    font-size:.9rem;
    line-height:1.55;
    margin-bottom:14px;
  }
}


/* Keep previews concise even if a cached script inserts the full Facebook message. */
.facebook-post-card h3,
.facebook-post-card p{
  display:-webkit-box!important;
  -webkit-box-orient:vertical;
  overflow:hidden!important;
}
.facebook-post-card h3{
  -webkit-line-clamp:3;
  line-clamp:3;
}
.facebook-post-card p{
  -webkit-line-clamp:4;
  line-clamp:4;
}
@media(max-width:700px){
  .facebook-post-card h3{
    -webkit-line-clamp:2;
    line-clamp:2;
  }
  .facebook-post-card p{
    -webkit-line-clamp:3;
    line-clamp:3;
  }
}
