/* Functional preview enhancements — approved green-led palette */
.honeypot{position:absolute!important;left:-10000px!important;width:1px;height:1px;overflow:hidden}.actionable-form{margin-top:12px}.actionable-form form{max-width:780px}.actionable-form h3{margin-top:0}.text-link{color:#126f86!important;text-decoration:underline!important;font-weight:700}.consent{align-items:flex-start;line-height:1.5}.consent input{margin-top:5px;flex-shrink:0}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #2995ad;outline-offset:3px}.hope-modal-wrap{position:fixed;inset:0;z-index:99999;display:none}.hope-modal-wrap.show{display:grid;place-items:center}.hope-modal-backdrop{position:absolute;inset:0;background:rgba(0,30,26,.72)}.hope-modal{position:relative;background:white;max-width:780px;width:calc(100% - 38px);display:grid;grid-template-columns:43% 57%;border-radius:16px;overflow:hidden;box-shadow:0 22px 85px #0005;color:#234640}.hope-modal-photo img{width:100%;height:100%;min-height:375px;object-fit:cover}.hope-modal-content{padding:40px 38px}.hope-modal-content h2{font:700 clamp(28px,3vw,37px)/1.1 Georgia,serif;color:#064c3d;margin:12px 0 20px}.hope-modal-content p{line-height:1.6;margin-bottom:22px}.hope-modal-close{position:absolute;top:12px;right:12px;border:0;background:#f3f8f8;border-radius:40px;width:38px;height:38px;font-size:25px;cursor:pointer;color:#064c3d}.hope-modal-notnow{display:block;background:none;border:0;color:#3c625c;text-decoration:underline;padding:12px 0;cursor:pointer}.hope-modal a.btn{color:white}@media(max-width:650px){.hope-modal{display:block;max-height:calc(100vh - 40px);overflow-y:auto}.hope-modal-photo img{height:145px;min-height:0}.hope-modal-content{padding:24px}.hope-modal-content h2{font-size:27px}}

/* Accessible image treatment and partner content, revision 2 */
.program-card img[src*="student-letter"],.story img[src*="student-letter"], img[src*="student-letter"]{object-fit:contain!important;object-position:center center!important;background:#f2f5f5!important}
.program-card img[src^="https://images.unsplash.com"]{object-position:center 35%}
.photo-credit{font-size:12px!important;line-height:1.5;color:#5c7674!important;margin:12px 0 0!important}
.partner-block{margin-top:38px!important;padding:28px 32px!important;background:#eaf4f6;border-left:4px solid #2995ad;border-radius:12px}
.partner-block h2,.partner-block h3{color:#064c3d}.partner-block p{max-width:920px;line-height:1.65}
.partner-block a{color:#087d91;font-weight:700;text-decoration:underline;overflow-wrap:anywhere}
@media(max-width:650px){.partner-block{padding:22px!important;margin-top:25px!important}}

/* V3 — authentic photography & focus-preserving crops */
.program-card img.faith-photo{object-fit:contain!important;object-position:center top!important;background:#e9f3f2!important;}
.program-card img.faith-photo[src*="IMG_7001"]{object-fit:contain!important;object-position:center top!important;}
.story .involved-photo{object-position:center 34%!important;}
.hero img.hero-us{object-position:center 26%!important;}
.photo{object-position:center 35%;}
/* V3 — smooth, accessible entrance and exit for chicken program popup */
.hope-modal-wrap,.hope-modal-wrap.show{display:grid;place-items:center;}
.hope-modal-wrap{opacity:0;visibility:hidden;pointer-events:none;transition:opacity 480ms ease,visibility 0s linear 480ms;}
.hope-modal-wrap.show{opacity:1;visibility:visible;pointer-events:auto;transition:opacity 480ms ease,visibility 0s;}
.hope-modal{opacity:0;transform:translateY(20px) scale(.985);transition:transform 480ms cubic-bezier(.2,.8,.2,1),opacity 480ms ease;}
.hope-modal-wrap.show .hope-modal{opacity:1;transform:translateY(0) scale(1);}
@media(prefers-reduced-motion:reduce){.hope-modal-wrap,.hope-modal-wrap.show,.hope-modal{transition:none!important;transform:none!important}}

/* V4 photo curation: protect subjects and do not force portrait pictures into widescreen crops */
.program-card img.faith-photo{object-fit:contain!important;object-position:center center!important;background:#e5f1f3!important;}
img.graphic-image{object-fit:contain!important;object-position:center center!important;background:#e8f4f5!important;}
img.montage-image{object-fit:contain!important;object-position:center center!important;background:#e8f4f5!important;}
.program-card img.remote-photo{object-fit:contain!important;object-position:center center!important;background:#e8f4f5!important;}
.what img.remote-photo{object-fit:contain!important;background:#e8f4f5!important;object-position:center center!important;}
.hero img.remote-photo{object-position:center 28%!important;}
.hero.no-photo-hero{background:linear-gradient(110deg,#063f35 0%,#075849 64%,#2995ad 150%)!important;isolation:isolate;}
.hero.no-photo-hero:before{background:none!important;}
.hero.no-photo-hero:after{background:linear-gradient(110deg,#042d2770,#2995ad22)!important;}
.photo.portrait,img.portrait{object-fit:contain!important;background:#e9f4f5!important;}
@media(max-width:850px){
 .hero img.remote-photo{object-position:center 23%!important;}
 .program-card img.faith-photo{object-fit:contain!important;}
}

/* V6: ensure poultry/campaign graphic is fully visible instead of cropped */
img[src*="graphic-poultry.svg"],
.sustain img[src*="graphic-poultry.svg"],
.featurebox img[src*="graphic-poultry.svg"],
.campaign img[src*="graphic-poultry.svg"],
.hope-modal-photo img[src*="graphic-poultry.svg"]{
  object-fit: contain !important;
  object-position: center center !important;
  background: linear-gradient(135deg,#0b6a59 0%, #0a4e43 100%) !important;
  padding: 10px;
}

/* V8: documentary embed — no autoplay, responsive layout */
.documentary-section{padding:68px 0;background:#f7faf9;border-top:1px solid #d9e9e7;border-bottom:1px solid #d9e9e7}
.documentary-layout{display:grid;grid-template-columns:minmax(0,0.85fr) minmax(0,1.15fr);gap:52px;align-items:center}
.documentary-copy h2{font-size:clamp(32px,3.3vw,45px);margin:12px 0 20px}
.documentary-copy p{font-size:16px;line-height:1.7;max-width:490px}
.documentary-link{color:#096f86;font-weight:700;text-decoration:underline;text-underline-offset:4px}
.documentary-video{min-width:0}
.video-frame{position:relative;width:100%;aspect-ratio:16/9;background:#063c34;border-radius:15px;overflow:hidden;box-shadow:0 15px 38px #073b3328}
.video-frame iframe{width:100%;height:100%;position:absolute;inset:0;border:0}
.video-caption{font-size:13px;color:#56726c;margin:10px 0 0}
@media(max-width:850px){.documentary-section{padding:48px 0}.documentary-layout{grid-template-columns:1fr;gap:26px}}

/* Partner feature */
.partner-highlight{background:#eaf5f6;padding:42px 0;border-top:1px solid #cee5e5}
.partner-highlight-inner{display:grid;grid-template-columns:minmax(0,2fr) minmax(220px,1fr);gap:32px;align-items:center}
.partner-highlight h2{font-size:clamp(26px,3vw,38px);margin:7px 0 13px}
.partner-highlight p{margin-bottom:0}
.partner-highlight-action{display:flex;flex-direction:column;gap:12px;border-left:2px solid #2995ad;padding-left:24px}
.partner-name{font:bold 25px Georgia,serif;color:#047257}
.partner-contact{background:#eaf5f6;padding:14px;border-radius:9px;font-size:14px}
.partner-contact a{color:#096b83;text-decoration:underline}
@media(max-width:640px){.partner-highlight-inner{grid-template-columns:1fr}.partner-highlight-action{border-left:0;border-top:2px solid #2995ad;padding-left:0;padding-top:16px}}


/* V9 verified organization-supplied cumulative impact strip */
.hope-impact-strip{background:#047257;color:#fff;padding:48px 0 38px}
.hope-impact-heading{text-align:center;max-width:790px;margin:0 auto 30px}
.hope-impact-kicker{font-size:11px;letter-spacing:2.5px;font-weight:800;color:#cee7e9;margin:0 0 7px}
.hope-impact-heading h2{color:#fff;font:700 clamp(25px,3vw,38px)/1.16 Georgia,serif;margin:0}
.hope-impact-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;text-align:center}
.hope-impact-stat{padding:8px 25px 20px;min-width:0}
.hope-impact-stat+.hope-impact-stat{border-left:1px solid rgba(221,245,242,.35)}
.hope-impact-stat strong{display:block;font:700 clamp(38px,5.1vw,65px)/1.12 Georgia,serif;color:#fff}
.hope-impact-stat span{display:block;color:#ecf7f4;font-size:15px;font-weight:650;line-height:1.5;margin:10px auto 0;max-width:245px}
.hope-impact-foot{border-top:1px solid rgba(221,245,242,.4);padding-top:17px;margin-top:10px;display:flex;align-items:center;justify-content:space-between;gap:18px;color:#d7eeea;font-size:13px}
.hope-impact-foot a{font-weight:700;color:white;text-decoration:underline;text-underline-offset:3px}
@media(max-width:650px){.hope-impact-strip{padding:35px 0 28px}.hope-impact-grid{grid-template-columns:1fr}.hope-impact-stat{padding:14px 5px}.hope-impact-stat+.hope-impact-stat{border-left:0;border-top:1px solid rgba(221,245,242,.25)}.hope-impact-stat strong{font-size:46px}.hope-impact-stat span{margin-top:2px}.hope-impact-foot{display:block;text-align:center}.hope-impact-foot a{display:block;margin-top:9px}}

.hope-impact-overlap{font-size:12px;color:#f6fffd;background:#047257;padding-bottom:18px!important;margin-top:-1px!important}


/* V11 compact, airy impact strip: pale-blue contrast from the green hero */
.hope-impact-strip{background:#eaf5f6!important;color:#074b3f!important;padding:23px 0 19px!important;border-top:4px solid #93b4bf;border-bottom:1px solid #d5e7e9}
.hope-impact-heading{margin:0 auto 14px!important;max-width:850px}
.hope-impact-kicker{color:#126d83!important;margin-bottom:3px!important;font-size:10px!important;letter-spacing:2px}
.hope-impact-heading h2{color:#074b3f!important;font:700 clamp(20px,2.15vw,27px)/1.18 Georgia,serif!important;margin:0!important}
.hope-impact-grid{gap:0!important;max-width:1040px;margin:0 auto}
.hope-impact-stat{padding:2px 15px 9px!important}
.hope-impact-stat+.hope-impact-stat{border-left:1px solid #b8d4d9!important}
.hope-impact-stat strong{color:#047257!important;font:700 clamp(31px,3.5vw,46px)/1.08 Georgia,serif!important;font-variant-numeric:tabular-nums;white-space:nowrap}
.hope-impact-stat span{color:#315c55!important;font-size:12px!important;line-height:1.3!important;margin:5px auto 0!important;max-width:280px}
.hope-impact-foot{border-top:1px solid #c9e0e3!important;margin-top:5px!important;padding-top:9px!important;color:#496c67!important;font-size:11px!important}
.hope-impact-foot a{color:#106d82!important}
@media(max-width:650px){
 .hope-impact-strip{padding:21px 0 17px!important}
 .hope-impact-heading{margin-bottom:15px!important}
 .hope-impact-heading h2{font-size:21px!important}
 .hope-impact-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:0!important}
 .hope-impact-stat{padding:0 7px 8px!important}
 .hope-impact-stat+.hope-impact-stat{border-top:0!important;border-left:1px solid #b8d4d9!important}
 .hope-impact-stat strong{font-size:clamp(25px,6vw,34px)!important}
 .hope-impact-stat span{font-size:10px!important;line-height:1.3!important;margin-top:5px!important}
 .hope-impact-foot{display:flex!important;flex-direction:column;gap:2px!important;text-align:center!important;font-size:10px!important}
 .hope-impact-foot a{margin-top:0!important}
}

/* V12: keep entire supplied poultry photo visible in the campaign lightbox. */
.hope-modal-photo{background:#eaf5f1;display:flex;align-items:center;justify-content:center}
.hope-modal-photo img{width:100%;height:100%;min-height:375px;object-fit:contain!important;object-position:center center!important;background:#eaf5f1}
@media(max-width:650px){.hope-modal-photo img{height:auto;min-height:0;max-height:230px;object-fit:contain!important}}


/* V13: genuine photos and compact two-by-two reports */
#reports .report-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:22px!important;margin-top:28px;align-items:stretch}
#reports .report-card{display:grid!important;grid-template-columns:142px minmax(0,1fr)!important;gap:18px;align-items:center;background:#fff;border:1px solid #d7e6e5;border-radius:14px;padding:16px;box-shadow:0 4px 18px rgba(1,57,45,.06);min-width:0;overflow:hidden}
#reports .report-card>a{display:block;min-width:0;align-self:center}
#reports .report-card img{display:block;width:100%!important;height:194px!important;max-height:194px!important;object-fit:contain!important;object-position:center;background:#e9f2f2;border-radius:6px}
#reports .report-info h3{font-size:20px;line-height:1.23;margin:0 0 10px}
#reports .report-info p{font-size:13px;margin:0 0 12px}
#reports .report-info .text-link{font-size:13px}
#reports .report-disclaimer{font-size:12px;color:#506b65}
#where .about-local-photo{display:block;width:100%;height:265px;object-fit:contain;object-position:center;background:#f0f5f5;border-radius:10px;margin:14px 0}
#healthcare .healthcare-actual-photo{height:350px;object-fit:cover;object-position:center 33%}
#prepare .hour-of-grace-full-photo{display:block;width:100%;height:auto!important;max-height:720px!important;object-fit:contain!important;object-position:center!important;background:#eaf5f6;padding:10px;border-radius:12px}
#ghana .hour-of-grace-context{object-fit:contain!important;background:#edf4f4}
.contact-photo-hero{min-height:395px;background:#064c3d;position:relative;overflow:hidden}
.contact-photo-hero .contact-hero-photo{position:absolute!important;right:0!important;left:auto!important;top:0!important;bottom:auto!important;width:45%!important;height:100%!important;object-fit:contain!important;object-position:center center!important;background:#e6efea;z-index:0!important}
.contact-photo-hero:before{content:"";position:absolute;inset:0;width:65%;height:100%;z-index:1;background:linear-gradient(90deg,#064c3d 0%,#064c3d 65%,rgba(6,76,61,0) 100%)}
.contact-photo-hero .wrap{position:relative;z-index:2;padding-right:45%}
.contact-photo-hero .wrap h1,.contact-photo-hero .wrap p{color:white}
@media(max-width:850px){#reports .report-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}#reports .report-card{display:block!important;padding:12px!important}#reports .report-card img{height:175px!important;max-height:175px!important;width:auto!important;max-width:100%!important;margin:0 auto 10px}#reports .report-info h3{font-size:17px}.contact-photo-hero{min-height:340px}.contact-photo-hero .contact-hero-photo{width:43%!important}.contact-photo-hero .wrap{padding-right:40%}}
@media(max-width:580px){#reports .report-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}#reports .report-card{padding:8px!important;gap:7px!important}#reports .report-card img{height:130px!important;max-height:130px!important}#reports .report-info h3{font-size:15px}#reports .report-info p{font-size:11px}#reports .report-info .text-link{font-size:12px}.contact-photo-hero{padding-top:0;min-height:0!important;display:flex;flex-direction:column-reverse;align-items:stretch}.contact-photo-hero:before{display:none}.contact-photo-hero .contact-hero-photo{position:relative!important;display:block;width:100%!important;height:auto!important;max-height:330px;aspect-ratio:3/2;object-fit:contain!important;left:auto!important;top:auto!important;right:auto!important;z-index:1!important}.contact-photo-hero .wrap{width:100%;padding:35px 22px 42px!important}.contact-photo-hero .wrap h1{font-size:36px}}

/* V14: curated original documentary photos. Preserve the composition. */
img.outreach-meal-photo{object-fit:contain!important;object-position:center center!important;background:#e9f2f2!important;height:400px!important;max-height:none!important}
img.partnership-mural-photo{object-fit:contain!important;object-position:center center!important;background:#eef4f4!important}
@media(max-width:650px){img.outreach-meal-photo{height:340px!important}}

/* V16 - Show the original Contact header photograph in full, without cropping */
.contact-photo-hero .contact-hero-photo{object-fit:contain!important;object-position:center center!important;background:#064c3d!important}
@media(max-width:580px){.contact-photo-hero .contact-hero-photo{height:auto!important;max-height:none!important;aspect-ratio:auto!important;width:100%!important;object-fit:contain!important}}


/* V17: seamless Contact hero photo + graduated green overlay, no separate boxed image */
.contact-photo-hero {
  position:relative!important;
  min-height:450px!important;
  display:flex!important;
  align-items:center!important;
  overflow:hidden!important;
  background:#064c3d!important;
  padding:0!important;
  isolation:isolate;
}
.contact-photo-hero .contact-hero-photo {
  position:absolute!important;
  inset:0 0 0 auto!important;
  left:auto!important; right:0!important;
  top:0!important; bottom:0!important;
  width:68%!important;
  height:100%!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center 28%!important;
  background:transparent!important;
  z-index:-1!important;
  border-radius:0!important;
  padding:0!important;
}
.contact-photo-hero::before {
  content:""!important;
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  z-index:0!important;
  background:linear-gradient(90deg,
    #064c3d 0%,
    #064c3d 31%,
    rgba(6,76,61,.96) 39%,
    rgba(6,76,61,.71) 50%,
    rgba(6,76,61,.22) 68%,
    rgba(6,76,61,0) 81%)!important;
}
.contact-photo-hero .wrap {
  position:relative!important;
  z-index:2!important;
  width:100%!important;
  padding:60px 34px!important;
  padding-right:40%!important;
}
.contact-photo-hero .wrap h1,
.contact-photo-hero .wrap p {color:#fff!important;}

/* Let photographic content fill its design area; preserve non-photographic artwork and full-sign image. */
img.outreach-meal-photo {
  width:100%!important;
  height:360px!important;
  object-fit:cover!important;
  object-position:center 45%!important;
  background:transparent!important;
}
img.partnership-mural-photo {
  width:100%!important;
  height:360px!important;
  object-fit:cover!important;
  object-position:center 48%!important;
  background:transparent!important;
}
.program-card img.faith-photo,
.program-card img.remote-photo,
.what img.remote-photo,
.story img.montage-image {
  width:100%!important;
  object-fit:cover!important;
  object-position:center 35%!important;
  background:transparent!important;
}
.photo.portrait,img.portrait {
  width:100%!important;
  object-fit:cover!important;
  object-position:center 24%!important;
  background:transparent!important;
}
/* Reports are covers and the Hour of Grace sign must remain fully visible. */
#reports .report-card img {object-fit:contain!important;}
#prepare .hour-of-grace-full-photo {object-fit:contain!important;}

@media(max-width:850px) {
 .contact-photo-hero {min-height:390px!important;}
 .contact-photo-hero .contact-hero-photo {width:75%!important;object-position:center 30%!important;}
 .contact-photo-hero .wrap {padding:46px 24px!important;padding-right:35%!important;}
}
@media(max-width:580px) {
  .contact-photo-hero {
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    min-height:0!important;
    padding:0!important;
    background:#064c3d!important;
  }
  .contact-photo-hero .wrap {
    order:0!important;
    padding:36px 22px 32px!important;
    width:100%!important;
  }
  .contact-photo-hero .contact-hero-photo {
    order:1!important;
    position:relative!important;
    inset:auto!important;
    width:100%!important;
    height:auto!important;
    aspect-ratio:auto!important;
    max-height:none!important;
    object-fit:contain!important;
    object-position:center!important;
    display:block!important;
    z-index:0!important;
  }
  .contact-photo-hero::before {
    inset:auto 0 0 0!important;
    height:42%!important;
    width:100%!important;
    background:linear-gradient(180deg,#064c3d 0%,rgba(6,76,61,.68) 16%,rgba(6,76,61,0) 45%)!important;
    pointer-events:none;
    z-index:1!important;
  }
  img.outreach-meal-photo,img.partnership-mural-photo {height:auto!important;max-height:none!important;object-fit:cover!important;}
  .photo.portrait,img.portrait {object-position:center 30%!important;}
}

/* V17 mobile: gently fade the top of the full-size contact photo into the dark green header */
@media(max-width:580px) {
  .contact-photo-hero::before {display:none!important;}
  .contact-photo-hero .contact-hero-photo {
    -webkit-mask-image:linear-gradient(to bottom, transparent 0, black 66px, black 100%);
    mask-image:linear-gradient(to bottom, transparent 0, black 66px, black 100%);
  }
}


/* V18 — functioning responsive mobile menu, identical on every page */
.hope-mobile-nav{display:none;position:relative;flex:0 0 auto;z-index:1001;}
.hope-mobile-nav summary{display:flex;align-items:center;justify-content:center;list-style:none;cursor:pointer;min-width:48px;min-height:48px;border-radius:9px;color:#fff;user-select:none;-webkit-tap-highlight-color:transparent;}
.hope-mobile-nav summary::-webkit-details-marker{display:none;}
.hope-mobile-nav summary::marker{content:'';}
.hope-menu-icon{font:normal 28px/1 Arial,sans-serif;}
.hope-mobile-nav[open] .hope-menu-icon{font-size:0;}
.hope-mobile-nav[open] .hope-menu-icon::after{content:'✕';font-size:26px;}
.hope-mobile-nav summary:focus-visible{outline:3px solid #93b4bf;outline-offset:2px;}
.hope-mobile-links{position:absolute;right:0;top:calc(100% + 7px);width:min(315px,calc(100vw - 24px));max-height:calc(100dvh - 105px);overflow-y:auto;background:#fff;border:1px solid #d9e6e5;border-radius:12px;box-shadow:0 12px 38px rgba(0,26,23,.35);padding:8px;z-index:1002;}
.hope-mobile-links a{display:block;padding:13px 16px;color:#064c3d!important;font:700 15px/1.3 Arial,sans-serif!important;white-space:normal;text-decoration:none;border-radius:7px;opacity:1!important;}
.hope-mobile-links a:hover,.hope-mobile-links a:focus-visible{background:#eaf5f6;text-decoration:none!important;}
.hope-mobile-links a[aria-current="page"]{background:#eaf5f6;color:#047257!important;}
.hope-mobile-links a[href="donate.html"]{background:#cb5716;color:#fff!important;margin-top:4px;}
@media(max-width:850px){
 .hope-mobile-nav{display:block!important;margin-left:auto!important;}
 .top,.header{z-index:1100!important;overflow:visible!important;}
 .topin,.head-inner,.headin{overflow:visible!important;}
 /* Keep the right-hand toggle clickable and prevent other header elements from covering it */
 .hope-mobile-nav summary{position:relative;z-index:1003;}
}
@media(min-width:851px){.hope-mobile-nav{display:none!important;}}

/* V21: two matching photo frames below the featured chicken campaign */
.story .item{align-items:stretch;}
.story .item > img{flex:0 0 43%;width:43%!important;height:290px!important;min-height:290px;max-height:290px;object-fit:cover!important;object-position:center 34%!important;align-self:stretch;display:block;background:transparent!important;}
.story .item > img.montage-image{object-fit:cover!important;object-position:center center!important;}
/* V21: real H.O.P.E. Ghana outreach photo in The Smile Group partner feature */
.partner-highlight-action .smile-partner-photo{width:100%;height:170px;display:block;object-fit:cover;object-position:center 38%;border-radius:11px;max-width:330px;}
@media(max-width:850px){
 .story .item > img{flex-basis:38%;width:38%!important;height:240px!important;min-height:240px;max-height:240px;}
}
@media(max-width:520px){
 .story .item > img{flex-basis:38%;width:38%!important;height:220px!important;min-height:220px;max-height:220px;}
 .partner-highlight-action .smile-partner-photo{height:180px;max-width:100%;}
}

/* V24: use a single full-size image in homepage Get Involved block and show the official Smile Group logo cleanly */
.partner-highlight-action .smile-partner-photo.smile-partner-logo{object-fit:contain!important;object-position:center center!important;background:#ffffff;border:1px solid #d7e8e8;padding:18px;}

/* V25: original H.O.P.E. photography collection — no cropping, responsive without changing the base design. */
.hope-gallery-section{border-top:1px solid #e4edeb;}
.hope-gallery-group-heading{color:#047257;font-family:Georgia,serif;font-size:clamp(21px,2.5vw,27px);margin:32px 0 14px;}
.hope-gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:start;gap:16px;}
.hope-gallery-image{margin:0;border-radius:12px;overflow:hidden;background:#edf4f2;box-shadow:0 2px 12px rgba(17,59,46,.08);}
.hope-gallery-image img{display:block;width:100%;height:auto;object-fit:contain;}
@media(max-width:860px){.hope-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}}
@media(max-width:420px){.hope-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}.hope-gallery-group-heading{margin-top:28px;}}

/* V26: user-supplied full photographs. Preserve natural compositions and avoid crop. */
img.hope-v26-full-photo{display:block;max-width:100%;object-fit:contain!important;object-position:center center!important;background:#eff5f3!important;}
/* A natural-size image can extend the section vertically, rather than being cut off. */
#story img.hope-v26-full-photo,#where img.hope-v26-full-photo,#faith img.hope-v26-full-photo,
#flagship img.hope-v26-full-photo,#volunteer img.hope-v26-full-photo,
#nutrition img.hope-v26-full-photo,#community img.hope-v26-full-photo,
#service img.hope-v26-full-photo,#experience img.hope-v26-full-photo,
#involved img.hope-v26-story-photo{object-fit:contain!important;object-position:center!important;}
#story img.hope-v26-full-photo,#where img.hope-v26-full-photo,#faith img.hope-v26-full-photo,
#flagship img.hope-v26-full-photo{width:100%!important;height:auto!important;max-height:none!important;}
.program img.hope-v26-full-photo{object-fit:contain!important;object-position:center center!important;background:#edf4f1!important;}
.story .item>img.hope-v26-story-photo{object-fit:contain!important;object-position:center center!important;background:#eff5f3!important;}
#volunteer .hope-v26-inline-figure{margin:22px 0 0;max-width:400px;}
#volunteer .hope-v26-inline-figure img{width:100%!important;height:auto!important;max-height:480px!important;object-fit:contain!important;}
.hope-v26-gallery-image{display:block;width:100%!important;height:auto!important;object-fit:contain!important;background:#eff5f3!important;}
.contact-photo-hero .contact-hero-photo.hope-v26-contact-photo{object-fit:contain!important;object-position:center center!important;background:#064c3d!important;}
@media(max-width:580px){.contact-photo-hero .contact-hero-photo.hope-v26-contact-photo{height:auto!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important;}
.story .item>img.hope-v26-story-photo{object-fit:contain!important;}}

/* V27: targeted reverts and image-size repairs, leaving other V26 pages unchanged. */
#nutrition.program > img.hope-v27-nutrition-photo {
  display:block;width:100%!important;height:100%!important;min-height:380px!important;
  object-fit:cover!important;object-position:center center!important;background:transparent!important;
}
#faithoutreach.program > img {object-fit:cover!important;}
#outreach img.hope-v27-dmv-photo {
  width:100%!important;height:auto!important;max-height:none!important;object-fit:contain!important;
  object-position:center center!important;background:transparent!important;
}
/* Ensure the original Our Impact gradient banner and its white text remain visible. */
body:has(#outreach) > section.hero.no-photo-hero {
  min-height:395px!important;display:flex!important;align-items:center!important;
  background:linear-gradient(110deg,#063f35 0%,#075849 64%,#2995ad 150%)!important;
}
body:has(#outreach) > section.hero.no-photo-hero .wrap {position:relative!important;z-index:2!important;}
body:has(#outreach) > section.hero.no-photo-hero h1,
body:has(#outreach) > section.hero.no-photo-hero p {color:white!important;visibility:visible!important;opacity:1!important;}
@media(max-width:750px){
 #nutrition.program > img.hope-v27-nutrition-photo{height:280px!important;min-height:0!important;object-fit:cover!important;}
}

/* V28 requested photo swaps. Preserve the complete photograph instead of cropping its edges. */
#community.program > img[src*="v28-community-development"],
#faithoutreach.program > img[src*="v28-faith-and-outreach"],
#healthcare.program > img.healthcare-actual-photo {
  display:block!important;width:100%!important;height:auto!important;min-height:0!important;
  max-height:none!important;object-fit:contain!important;object-position:center center!important;
  align-self:center!important;background:#edf4f1!important;
}
/* The single garden photo is landscape: allow it to span the whole image side. */
#involved.story .item:last-child {display:flex;flex-direction:column;align-items:stretch;}
#involved.story .item:last-child > img[src*="v28-first-garden"] {
  display:block!important;flex:none!important;width:100%!important;height:auto!important;
  min-height:0!important;max-height:none!important;object-fit:contain!important;
  object-position:center center!important;background:transparent!important;
}
#involved.story .item:last-child .copy {flex:1;}
/* Show complete portrait photographs with natural dimensions in service and travel panels. */
#volunteer .split > img[src*="v28-dmv-volunteers"],
#purpose .split > img[src*="v28-volunteer-at-hope"] {
  display:block!important;width:100%!important;height:auto!important;max-height:none!important;
  min-height:0!important;object-fit:contain!important;object-position:center!important;
  background:transparent!important;
}
@media(max-width:750px){
  #community.program > img[src*="v28-community-development"],
  #faithoutreach.program > img[src*="v28-faith-and-outreach"],
  #healthcare.program > img.healthcare-actual-photo {width:100%!important;height:auto!important;min-height:0!important;}
}

/* V29: targeted Journey of H.O.P.E. image presentation only. */
/* Show Tonja and the entire group without cutting off the top of the portrait. */
#travel .split > img[src$="journey-of-hope.jpg"] {
  display:block!important; width:min(100%,410px)!important; height:auto!important;
  min-height:0!important; max-height:none!important; object-fit:contain!important;
  object-position:center top!important; align-self:center!important;
}
/* Scale the More Than a Trip portrait down while keeping the whole photo visible. */
#purpose .split > img[src$="v28-volunteer-at-hope.jpg"] {
  display:block!important; width:min(100%,340px)!important; height:auto!important;
  min-height:0!important; max-height:none!important; object-fit:contain!important;
  object-position:center center!important; align-self:center!important;
}
