/* KJF Core front-end components */
.kjf-people{
  margin-block:clamp(2.75rem,7vw,5.5rem) 1rem;
}
.kjf-people-heading{
  margin-bottom:1.35rem;
}
.kjf-people-heading h2{
  margin:.1rem 0 0;
  font-size:clamp(1.8rem,3vw,2.5rem);
}
.kjf-people-eyebrow{
  margin:0;
  color:var(--wp--preset--color--moss,#72825d);
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.11em;
  text-transform:uppercase;
}
.kjf-people-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr));
  gap:1.35rem;
}
.kjf-person-card{
  display:flex;
  flex-direction:column;
  min-width:0;
  overflow:hidden;
  background:var(--wp--preset--color--white,#fff);
  border:1px solid color-mix(in srgb,var(--wp--preset--color--forest,#244626) 12%,transparent);
  border-radius:18px;
  box-shadow:0 12px 30px rgba(31,46,32,.08);
}
.kjf-person-photo{
  position:relative;
  display:block;
  aspect-ratio:4/3;
  overflow:hidden;
  background:linear-gradient(145deg,var(--wp--preset--color--sand,#f3f0e6),#e2e8dc);
}
.kjf-person-photo img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center top;
}
.kjf-person-placeholder{
  display:grid;
  width:100%;
  height:100%;
  place-items:center;
  color:var(--wp--preset--color--forest,#244626);
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(2.5rem,6vw,4rem);
  font-weight:700;
}
.kjf-person-body{
  display:flex;
  flex:1;
  flex-direction:column;
  padding:1.1rem 1.15rem 1.2rem;
}
.kjf-person-body h3{
  margin:0;
  color:var(--wp--preset--color--forest,#244626);
  font-size:1.2rem;
  line-height:1.2;
}
.kjf-person-roles{
  display:flex;
  flex-wrap:wrap;
  gap:.38rem;
  margin:.7rem 0 .95rem;
}
.kjf-role-badge{
  display:inline-flex;
  align-items:center;
  min-height:1.8rem;
  padding:.28rem .58rem;
  border-radius:999px;
  background:var(--wp--preset--color--sand,#f3f0e6);
  color:var(--wp--preset--color--forest,#244626);
  font-size:.78rem;
  font-weight:750;
  line-height:1.2;
}
.kjf-person-contact{
  display:grid;
  gap:.42rem;
  margin-top:auto;
  padding-top:.15rem;
}
.kjf-contact-link{
  display:grid;
  grid-template-columns:1.15rem minmax(0,1fr);
  gap:.45rem;
  align-items:start;
  color:var(--wp--preset--color--ink,#20251f);
  font-size:.9rem;
  line-height:1.35;
  text-decoration:none;
}
.kjf-contact-link:hover{
  color:var(--wp--preset--color--forest,#244626);
  text-decoration:underline;
}
.kjf-contact-link span:last-child{
  overflow-wrap:anywhere;
}

@media (min-width:1000px){
  .kjf-people-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media (max-width:560px){
  .kjf-person-card{display:grid;grid-template-columns:108px minmax(0,1fr);}
  .kjf-person-photo{height:100%;aspect-ratio:auto;min-height:150px;}
  .kjf-person-body{padding:.95rem;}
  .kjf-person-roles{margin:.55rem 0 .7rem;}
}

/* Compact, full-bleed featured-gallery tiles on the front page.
   Scoped to this shortcode so KJF theme and other Core components stay untouched. */
.kjf-featured-galleries{
  width:100%;
  min-width:0;
  margin:0;
  padding:0;
}
.kjf-featured-gallery-grid{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:stretch;
  gap:.75rem;
  width:100%;
  max-width:1020px;
  margin-inline:auto;
}
.kjf-featured-gallery-card{
  position:relative;
  flex:1 1 205px;
  width:100%;
  max-width:247px;
  height:122px;
  min-width:0;
  margin:0;
  overflow:hidden;
  border:0;
  border-radius:10px;
  background:var(--wp--preset--color--forest,#244626);
  box-sizing:border-box;
}
.kjf-featured-gallery-grid .kjf-featured-gallery-link{
  position:relative;
  display:block;
  width:100%;
  height:100%;
  color:#fff;
  text-decoration:none;
  overflow:hidden;
}
.kjf-featured-gallery-thumb{
  position:absolute;
  inset:0;
  display:block;
  overflow:hidden;
  background:var(--wp--preset--color--forest,#244626);
}
.kjf-featured-gallery-grid .kjf-featured-gallery-thumb > img.kjf-featured-gallery-image{
  position:absolute;
  inset:0;
  display:block;
  width:100% !important;
  height:100% !important;
  min-width:100%;
  min-height:100%;
  max-width:none;
  max-height:none;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  aspect-ratio:auto;
  object-fit:cover;
  object-position:center;
  transition:transform .25s ease;
}
.kjf-featured-gallery-thumb::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 30%,rgba(0,0,0,.72) 100%);
  pointer-events:none;
}
.kjf-featured-gallery-empty{
  display:block;
  width:100%;
  height:100%;
}
.kjf-featured-gallery-title{
  position:absolute;
  z-index:1;
  left:0;
  right:0;
  bottom:0;
  display:-webkit-box;
  min-width:0;
  max-height:100%;
  margin:0;
  padding:1.15rem .7rem .65rem;
  overflow:hidden;
  overflow-wrap:anywhere;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  line-clamp:2;
  color:#fff;
  font-family:inherit;
  font-size:var(--wp--preset--font-size--small,.92rem);
  font-weight:600;
  line-height:1.3;
  text-shadow:0 1px 2px rgba(0,0,0,.45);
  box-sizing:border-box;
}
.kjf-featured-gallery-link:hover .kjf-featured-gallery-image{
  transform:scale(1.035);
}
.kjf-featured-gallery-link:hover .kjf-featured-gallery-title{
  text-decoration:underline;
  text-underline-offset:3px;
}
.kjf-featured-gallery-link:focus-visible{
  outline:2px solid currentColor;
  outline-offset:-3px;
}
.kjf-featured-gallery-more{
  max-width:1020px;
  margin:.6rem auto 0;
  text-align:right;
}
.kjf-featured-gallery-more a{
  color:inherit;
  text-underline-offset:3px;
}
@media(max-width:680px){
  .kjf-featured-gallery-card{flex-basis:190px;max-width:none;height:114px;}
}
@media(max-width:440px){
  .kjf-featured-gallery-grid{gap:.6rem;}
  .kjf-featured-gallery-card{flex-basis:100%;height:126px;}
}
@media(prefers-reduced-motion:reduce){
  .kjf-featured-gallery-image{transition:none !important;}
}
