/* VillageGIVE v2.7 refinement: authentic imagery and consistent engagement. */
@media(min-width:761px){
 .vg .v27-hero .v27-slide-learning .vg-family-image{width:68%!important;object-fit:cover!important;object-position:55% 38%!important;mask-image:linear-gradient(90deg,transparent 0%,#000 28%)}
 .vg .v27-hero[data-variant]:not([data-variant="family"]):before{background:linear-gradient(90deg,#0b342a 0%,#0b342a 32%,#0b342adb 45%,#0b342a50 64%,transparent 82%)}
}
.vg .v27-main .vg-feature-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:stretch}
.vg .v27-main .vg-just2-panel{position:relative;isolation:isolate;padding:28px;overflow:hidden;display:flex;align-items:center;min-height:320px}
.vg .v27-main .vg-just2-panel:after{content:none}
.vg .v27-main .vg-just2-panel>div{position:relative;z-index:1;max-width:58%}
.vg .vg-refine-challenge-photo{position:absolute;right:0;top:0;width:56%;height:100%;object-fit:cover;object-position:center;z-index:-1;mask-image:linear-gradient(90deg,transparent 0%,#000 48%)}
.vg .v26-just2-home-logo img{width:min(100%,265px);height:auto;display:block}
.vg .v27-main .vg-just2-panel .vg-just2-tagline{font-size:17px;line-height:1.4}
.vg .v27-main .vg-just2-panel .vg-just2-free{font-size:13px}
.vg .v27-main .vg-newsletter-panel{display:flex;flex-direction:column;justify-content:center;gap:12px;padding:28px;min-height:320px}
.vg .v27-main .vg-newsletter-panel .vg-btn{align-self:flex-start;max-width:100%;white-space:normal}
.vg .vg-refine-subnote{font-size:14px!important;line-height:1.5;margin:0;color:#405d68}
.vg .v27-main .vg-builders{display:grid;grid-template-columns:minmax(220px,1fr) minmax(180px,1.1fr) auto;gap:24px;align-items:center;justify-content:space-between;padding:24px 30px}
.vg .v27-main .vg-builders-title{padding:0;margin:0;justify-content:flex-start}
.vg .v27-main .vg-giving-option{min-height:0;max-width:none;display:block;text-align:left;padding:0 0 0 24px;border:0;border-left:1px solid #d3c394}
.vg .v27-main .vg-giving-option p{font-size:16px;line-height:1.5;max-width:unset;margin:0}
.vg .v27-main .vg-builders>.vg-btn{margin:0;justify-self:end}
.vg .v27-story-grid>.vg-refine-full{grid-column:1/-1}
.vg .v27-story-grid>.vg-refine-full .vg-section{max-width:1060px;margin:0 auto}
.vg .v27-story-grid .vg-refine-illustrated .vg-section{width:100%;box-sizing:border-box}
.vg .vg-refine-card-image{display:block;width:100%;height:clamp(158px,17vw,238px);border-radius:12px;object-fit:cover;margin:18px 0 20px}
.vg .vg-refine-diagram{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0 20px;min-height:160px}
.vg .vg-refine-diagram span{display:flex;align-items:center;justify-content:center;text-align:center;padding:12px;min-height:65px;border-radius:10px;font-size:16px;font-weight:750;background:#fff;color:#103d56;border:1px solid #c9ded9}
.vg .vg-formula span{background:#eac66b;color:#142d3e;border-color:#f3d68a}
.vg .vg-journey span{background:#d3eee0;color:#0b4b32}
.vg .vg-refine-invite,.v27-page .vg .vg-refine-invite:not(.v26-home-invite){background:linear-gradient(90deg,#0a2d4780 0%,#0a304ec0 26%,#0a3455 44%,#126747 100%),var(--vg-closing-photo) left center/58% auto no-repeat!important;background-color:#0a3455!important;padding:0!important;border-top:4px solid #74ba49}
.vg .vg-refine-invite>.vg-wrap,.vg .vg-refine-invite:not(.v26-home-invite)>.vg-wrap{display:flex;justify-content:flex-end;align-items:center;gap:32px;width:min(1180px,calc(100% - 48px));min-height:250px;padding:48px 0 48px 28%;box-sizing:border-box;text-align:left}
.vg .vg-refine-invite .vg-kicker{display:none}
.vg .vg-refine-invite h2{font-size:clamp(28px,3vw,42px);line-height:1.15}
.vg .vg-refine-invite .vg-invite-subtitle{font-size:18px}
.vg .vg-refine-invite .vg-btn{margin:0;white-space:normal;text-align:center;flex-shrink:0}
.vg .vg-refine-video .v27-film-poster{object-fit:cover;object-position:center;opacity:1}
.vg .vg-refine-video:has(.v27-film-poster):before{background:linear-gradient(0deg,#001b2acc 0%,#001b2a30 50%,#001b2a20)}
.vg .vg-refine-video>div{align-self:end;padding-bottom:12px}
.vg .vg-refine-video .v26-play-icon{display:none}
.vg .vg-refine-video h3{display:none}
.vg .vg-refine-video p{margin:4px 0 0}
.vg .vg-refine-story-link{display:block;position:relative;overflow:hidden;aspect-ratio:16/9;border-radius:12px}
.vg .vg-refine-story-link img{width:100%;height:100%;object-fit:cover;display:block}
.vg .vg-refine-play{position:absolute;right:13px;bottom:13px;border-radius:50%;background:white;color:#0e534e;width:32px;height:32px;display:grid;place-items:center}
.vg .vg-refine-give{margin-block:28px;display:grid;grid-template-columns:1.25fr 1fr;align-items:center;gap:30px;padding:30px!important;border:1px solid #c7e3d1;border-radius:16px;background:linear-gradient(120deg,#eef8f1,#e0edf8)}
.vg .vg-refine-give .vg-btn{white-space:normal}
.vg-refine-exit{width:min(440px,calc(100% - 32px));padding:0;border:1px solid #dbe6e9;border-top:5px solid #68a936;border-radius:17px;box-shadow:0 12px 60px #0b253d40;color:#0d3955}
.vg-refine-exit::backdrop{background:#081f3030}
.vg-refine-exit>div{padding:32px;position:relative}
.vg-refine-exit h2{font-size:28px;margin:8px 0}
.vg-refine-exit p{line-height:1.5}
.vg-exit-close{position:absolute;right:12px;top:8px;border:0;background:none;font-size:28px;cursor:pointer}
.vg-exit-later{border:0;background:none;color:#174e63;text-decoration:underline;cursor:pointer;margin:10px;padding:8px}
@media(max-width:900px){
 .vg .v27-main .vg-feature-row{grid-template-columns:1fr}
 .vg .v27-main .vg-builders{grid-template-columns:1fr auto}
 .vg .v27-main .vg-giving-option{grid-row:2;grid-column:1/-1;border:0;padding:0}
 .vg .vg-refine-invite>.vg-wrap,.vg .vg-refine-invite:not(.v26-home-invite)>.vg-wrap{padding-left:18%;gap:20px}
}
@media(max-width:760px){
 .vg .v27-main .vg-just2-panel>div{max-width:65%}
 .vg .v27-main .vg-builders{grid-template-columns:1fr;padding:22px;gap:15px}
 .vg .v27-main .vg-giving-option{grid-row:auto}
 .vg .v27-main .vg-builders>.vg-btn{justify-self:start}
 .vg .vg-refine-invite,.v27-page .vg .vg-refine-invite:not(.v26-home-invite){background:linear-gradient(180deg,#0a345520 0%,#0a3455 56%,#126747 100%),var(--vg-closing-photo) center top/100% auto no-repeat!important;background-color:#0a3455!important}
 .vg .vg-refine-invite>.vg-wrap,.vg .vg-refine-invite:not(.v26-home-invite)>.vg-wrap{padding:142px 0 30px;text-align:center;min-height:320px;justify-content:center;flex-direction:column;gap:16px}
 .vg .vg-refine-give{grid-template-columns:1fr}
 .vg .vg-refine-card-image{height:175px}
}
/* Avoid orphaned grid cells and preserve faces in photographic cards. */
.vg .v27-story-grid > .v27-card.vg-refine-full{grid-column:1/-1!important}
.vg .vg-refine-card-image{object-position:center 30%}
.vg .v27-main .vg-refine-invite:not(.v26-home-invite){background-size:auto,58% auto!important}
.vg .vg-refine-story-link img{object-position:center}
.vg .v27-main .vg-newsletter-panel .vg-refine-subnote{max-width:100%}
@media(max-width:760px){.vg .v27-main .vg-just2-panel{min-height:0;padding:22px}.vg .v27-main .vg-just2-panel>div{max-width:100%;width:100%;padding-top:150px}.vg .vg-refine-challenge-photo{width:100%;height:185px;top:0;object-position:center 28%;mask-image:linear-gradient(180deg,#000 40%,transparent 100%)}.vg .v26-just2-home-logo img{width:190px}.vg .vg-refine-invite>.vg-wrap,.vg .vg-refine-invite:not(.v26-home-invite)>.vg-wrap{width:calc(100% - 36px)}}
/* Official Givebutter embeds; let the checkout adjust its own height. */
.vg .vg-gb-home{display:flex;flex-direction:column;align-items:center;gap:7px;min-width:0}
.vg .vg-gb-home givebutter-widget{display:block;max-width:100%}
.vg .vg-gb-fallback{font-size:14px;line-height:1.5;color:#145d44;text-decoration:underline;text-underline-offset:3px}
.vg .vg-gb-form{width:100%;max-width:420px;min-width:0;margin:0 auto}
.vg .vg-gb-form givebutter-widget{display:block;width:100%;height:auto}
.vg #quick-give{align-items:center;grid-template-columns:minmax(0,1fr) minmax(0,420px);gap:36px;scroll-margin-top:24px}
@media(max-width:760px){.vg #quick-give{grid-template-columns:minmax(0,1fr);gap:20px}.vg .vg-gb-home{align-items:flex-start}.vg .vg-gb-form{max-width:100%}}
