/*
 * BLOCK STYLES - the one file for how content blocks look.
 *
 *  1. COLOURS      every colour used by the blocks, named, in one place. Change a colour here and it changes everywhere.
 *  2. BLOCK LOOK   the look of each content block (hero, progress, explainer, local need, gifts, pillars, updates, call to
 *                  action, story, values, events, documents, volunteer, gallery, sponsors, testimonials, contact form, lists).
 *                  Moved here from styles.css rule for rule, in the same order (the order matters for the cascade).
 *  3. COLOUR STYLES + BOX  the styles the admin's Block Styles screen relies on. Each colour class stands alone and works
 *                  on a container (full-width band) or a content box. Class names must match those typed in Block Styles.
 *
 * Load order on the site: bootstrap.css, styles.css, blockstyles.css, custom.css (custom.css always last).
 */

/* ============================== 1. COLOURS ============================== */
:root{
  /* Brand. These override the same names at the top of styles.css, so edit them here only. */
  --teal:#168877;
  --navy:#013a55;
  --gold:#ffc966;
  --ink:#333;
  --gold-mid:#e8b84a;   /* darker golds for hover and edges: a theme works these out from --gold */
  --gold-dark:#e0a22c;
  --gold-deep:#c99a2e;
  --blue:#2788c8;

  /* Colour styles you can pick in Block Styles (container or box). To add one, see section 3. */
  --c-primary:var(--site-primary,var(--teal));  /* "Primary colour": the Primary colour in Site Settings, else teal */
  --c-primary-text:#fff;                        /* text on the primary colour */
  --c-light-grey:#f2f2f2;
  --c-light-green:#f6faf9;
  --c-light-blue:#dceff3;
  --c-green-wash:#eef7f5;
  --c-white:#fff;

  /* Soft backgrounds inside blocks */
  --c-wash:#f3faf8;            /* the pale band/panel colour */
  --c-mist:#dcefeb;            /* the offset shape behind a picture */
  --c-share:#6a9c94;           /* Share this page buttons: a soft teal-grey (3:1 on white) */
  --c-share-wash:#e7f1ef;      /* ...their hover fill */
  --c-hero-tint-1:#d8f1ec;     /* hero background shape, start */
  --c-hero-tint-2:#e9f6fa;     /* hero background shape, end */
  --c-placeholder:#ddd;        /* behind a gallery picture while it loads */
  --c-overlay:#012b3dde;       /* dark strip over gallery pictures */

  /* Text */
  --c-text-soft:#526064;       /* lead paragraphs */
  --c-text-muted:#637377;      /* small print, captions, dates */
  --c-text-faint:#78878a;
  --c-text-ghost:#91aaa5;
  --c-text-on-dark:#c4d6db;    /* body text on navy/teal bands */
  --c-text-on-dark-bright:#d0e1e5;
  --c-accent-on-dark:#9fe1d5;  /* mint highlights on dark bands */
  --c-accent-on-dark-bright:#c8eee7;

  /* Lines and borders */
  --c-border:#d8e5e1;
  --c-border-light:#e3eeeb;
  --c-border-strong:#cbd8d5;
  --c-border-input:#aebfbb;    /* search boxes */
  --c-line-on-dark-soft:#ffffff1a;
  --c-line-on-dark:#ffffff28;
  --c-line-on-dark-strong:#ffffff45;
  --c-photo-edge:#ffffff88;
}

/* ============================== 2. BLOCK LOOK ============================== */
/* --- Featured story hero --- */
.hero-shape{position:absolute;width:700px;height:700px;border-radius:48% 52% 65% 35%;background:linear-gradient(145deg,var(--c-hero-tint-1),var(--c-hero-tint-2));right:-170px;top:-160px;transform:rotate(-12deg)}
.hero-copy p{font-size:1.1875rem;max-width:650px;margin:24px 0;color:var(--c-text-soft)}
.hero-copy em{font-weight:400;color:var(--teal)}
.hero-visual{position:relative}
.photo-frame{position:relative;overflow:hidden;border-radius:48% 48% 20px 20px;box-shadow:0 30px 80px color-mix(in srgb,var(--navy) 19%,transparent)}
.photo-frame img{width:100%;height:500px;display:block;object-fit:cover}
.photo-frame:after{content:"";position:absolute;inset:0;border:1px solid var(--c-photo-edge);border-radius:inherit}
.floating-note{position:absolute;left:-55px;bottom:28px;background:var(--c-white);padding:18px 22px;border-radius:8px;box-shadow:0 15px 45px color-mix(in srgb,var(--navy) 15%,transparent);display:flex;flex-direction:column}
.floating-note b{font-family:var(--open);font-size:1.125rem;color:var(--navy)}
.floating-note span{font-size:0.75rem;color:var(--c-text-muted)}

/* --- Campaign progress --- */
.progress-card{background:var(--c-white);border-radius:12px;padding:26px 34px;box-shadow:0 20px 55px color-mix(in srgb,var(--navy) 9%,transparent);border:1px solid var(--c-border-light)}
.progress-top{display:flex;justify-content:space-between;align-items:end}
.progress-top strong{font-family:var(--open);color:var(--navy);font-size:1.875rem;display:block}
.progress-top small{color:var(--c-text-muted)}
.progress-card>p{font-size:0.8125rem;margin:12px 0 0;max-width:800px}

/* --- Latest updates --- */
.news-grid a{font-weight:700;color:var(--teal);font-size:0.875rem}

/* --- Three pillars --- */
.three-pillars{background:var(--navy);color:var(--c-white);padding:105px 0;position:relative;overflow:hidden}
.three-pillars:after{content:"";position:absolute;width:500px;height:500px;border:1px solid var(--c-line-on-dark-soft);border-radius:50%;right:-180px;top:-210px}
.three-pillars h2{color:var(--c-white)}

/* --- Latest updates --- */
.updates{padding:110px 0}
.news-grid{display:grid;grid-template-columns:2fr 1fr;gap:22px}
.news-grid article{border-top:1px solid var(--c-border-strong);padding:26px 4px}
.news-grid article:not(.feature-news){grid-column:2}
.feature-news{grid-row:span 2;display:grid;grid-template-columns:1fr 1fr;gap:30px;border-top:0!important;padding-top:0!important}
.feature-news img{width:100%;height:100%;min-height:410px;object-fit:cover;border-radius:8px}
.feature-news h3{font-size:2.125rem;margin:16px 0}
.news-grid article:not(.feature-news) h3{margin:8px 0 20px}

/* --- Call-to-action band --- */
.cta-band{background:var(--c-light-green);padding:65px 0}
.cta-band .wrap{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:30px}
.cta-band h2{font-size:2.1875rem;max-width:750px}

/* --- Featured story hero --- */
.butterfly{font-size:3.75rem;color:var(--teal)}

/* --- Campaign progress --- */
.progress-card.dark{background:transparent;border:0;box-shadow:none;padding:28px 0;color:var(--c-white)}
.progress-card.dark strong,.progress-card.dark .percent{color:var(--c-white)}
.progress-card.dark .bar{background:var(--c-line-on-dark)}
.progress-card.dark .bar i{background:var(--gold)}
.progress-card.dark .ticks,.progress-card.dark small{color:var(--c-text-on-dark)}

/* --- Other blocks --- */
.page-orb{position:absolute;width:440px;height:440px;border:1px solid color-mix(in srgb,var(--teal) 14%,transparent);border-radius:50%;right:-80px;top:-230px}

/* --- Campaign progress --- */
.giving-intro .progress-card{box-shadow:none;background:var(--c-wash)}

/* --- Responsive rules (all blocks) --- */
@media(max-width:900px){.hero-copy{max-width:680px}.hero-visual{width:min(560px,90%);margin-left:auto}.photo-frame img{height:420px}.hero-shape{right:-420px}.news-grid{grid-template-columns:1fr}.news-grid article:not(.feature-news){grid-column:auto}.feature-news{grid-row:auto}.cta-band .wrap{grid-template-columns:1fr}}
@media(max-width:600px){.hero-visual{width:100%}.photo-frame{border-radius:100px 100px 8px 8px}.photo-frame img{height:340px}.floating-note{left:10px;bottom:12px}.progress-card{padding:22px 18px}.progress-top{align-items:center}.progress-top strong{font-size:1.5rem}.updates{padding:75px 0}.three-pillars{padding:75px 0}.feature-news{grid-template-columns:1fr}.feature-news img{min-height:280px}.cta-band{padding:50px 0}}

/* --- Featured story hero --- */
.hero-three{position:relative;overflow:hidden;background:linear-gradient(120deg,var(--c-wash) 0%,var(--c-wash) 66%,var(--c-white) 66%);min-height:680px;padding:70px 0 0;transition:background-color .25s ease}
.hero-three .hero-shape{right:-210px;top:-190px}
.hero-three-row{min-height:500px}
.hero-three .hero-copy p{max-width:680px}
.hero-three .photo-frame img{height:440px}
.hero-three.hero-news .photo-frame{border-radius:8px 120px 8px 8px}
.hero-three.hero-news .photo-frame img{object-position:center}
.hero-three.hero-event .photo-frame{border-radius:120px 8px 8px 8px}
.hero-three.hero-event .photo-frame img{object-position:center}
.hero-story-nav{position:relative;display:grid;grid-template-columns:repeat(3,1fr);max-width:790px;margin-top:38px;background:var(--c-white);border-radius:8px 8px 0 0;box-shadow:0 18px 50px color-mix(in srgb,var(--navy) 8%,transparent);overflow:hidden}
.hero-story-nav button{border:0;border-left:1px solid var(--c-border-light);background:var(--c-white);text-align:left;padding:17px 20px;color:var(--c-text-muted);display:flex;gap:12px;align-items:center}
.hero-story-nav button:first-child{border-left:0}
.hero-story-nav button span{color:var(--c-text-ghost);font-size:0.6875rem}
.hero-story-nav button b{font-size:0.8125rem}
.hero-story-nav button.active{box-shadow:inset 0 4px 0 var(--teal);color:var(--navy);background:var(--c-wash)}

/* --- Campaign progress --- */
.fundraising-section{padding:70px 0;background:var(--c-white);border-bottom:1px solid var(--c-border-light)}
.fundraising-section h2{font-size:clamp(2rem,3vw,2.75rem)}
.fundraising-section .progress-card{box-shadow:none;padding:28px 32px;background:var(--c-wash)}

/* --- Three pillars --- */
.pillar-grid-bs{margin-top:55px;border:1px solid var(--c-line-on-dark-soft)}
.pillar-grid-bs article{padding:36px 34px;border-left:1px solid var(--c-line-on-dark-soft)}
.pillar-grid-bs article:first-child{border-left:0}
.pillar-grid-bs b{color:var(--gold);font-size:0.8125rem}
.pillar-grid-bs h3{color:var(--c-white);margin:25px 0 10px}
.pillar-grid-bs p{color:var(--c-text-on-dark)}

/* --- Featured story hero --- */
.hero-story-controls{display:flex;align-items:flex-end;gap:12px}
.hero-story-controls .hero-story-nav{flex:1}
.hero-pause{flex:0 0 50px;width:50px;height:50px;margin-bottom:13px;border:1px solid var(--c-border-strong);border-radius:50%;background:var(--c-white);color:var(--teal);font-weight:700}
.hero-pause:hover,.hero-pause:focus-visible{background:var(--teal);color:var(--c-white);outline:3px solid color-mix(in srgb,var(--gold) 50%,transparent);outline-offset:2px}

/* --- Picture and panel (explainer) --- */
.hospice-explainer{padding:30px 0 120px}
.explainer-photo{min-height:570px;position:relative}
.explainer-photo:before{content:"";position:absolute;inset:25px -25px -25px 25px;background:var(--c-mist);border-radius:140px 8px 8px 8px}
.explainer-photo img{position:relative;width:100%;height:100%;object-fit:cover;border-radius:140px 8px 8px 8px}
.explainer-copy{align-self:center;background:var(--c-white);padding:65px 70px;margin-left:-50px;position:relative;box-shadow:0 25px 65px color-mix(in srgb,var(--navy) 8%,transparent);border-left:4px solid var(--gold)}
.explainer-copy .lead{font-family:var(--open);font-size:1.4375rem;color:var(--navy);line-height:1.45;margin:25px 0 18px}

/* --- Local need --- */
.editorial-link,.local-need a{display:inline-flex;gap:14px;color:var(--teal);font-weight:700;margin-top:16px;border-bottom:1px solid currentColor;padding-bottom:5px}
.local-need{position:relative;overflow:hidden;background:var(--navy);color:var(--c-white);padding:110px 0}
.local-need h2{color:var(--c-white);max-width:700px}
.local-lead{font-size:1.25rem;color:var(--c-text-on-dark-bright);max-width:720px;margin:28px 0}
.local-need a{color:var(--gold)}
.local-rings{position:absolute;width:650px;height:650px;border:1px solid var(--c-line-on-dark-soft);border-radius:50%;right:-180px;top:-310px}
.local-rings:after{content:"";position:absolute;inset:75px;border:1px solid var(--c-line-on-dark-soft);border-radius:50%}
.need-points{border-top:1px solid var(--c-line-on-dark)}
.need-points>div{display:grid;grid-template-columns:45px 1fr;gap:12px;padding:22px 0;border-bottom:1px solid var(--c-line-on-dark)}
.need-points span{color:var(--gold);font-size:0.75rem}
.need-points p{margin:0;color:var(--c-text-on-dark-bright)}
.need-points b{color:var(--c-white)}

/* --- Ways to give --- */
.donation-choices{padding:120px 0;background:var(--c-wash)}
.donation-choices .gifts-sub{font-size:1.125rem;color:var(--c-text-muted)}
.gift-card{background:var(--c-white);border:1px solid var(--c-border);border-radius:8px;padding:38px;display:flex;flex-direction:column;transition:transform .2s ease,box-shadow .2s ease}
.gift-card:hover{transform:translateY(-4px);box-shadow:0 20px 50px color-mix(in srgb,var(--navy) 7%,transparent)}
.gift-number{color:var(--c-text-ghost);font-size:0.75rem;border-bottom:1px solid var(--c-border);padding-bottom:20px;margin-bottom:28px}
.gift-card h3{font-size:1.9375rem}
.gift-card p{color:var(--c-text-muted);margin:18px 0 35px}
.gift-card button{margin-top:auto;align-self:flex-start;border:0;background:none;color:var(--teal);font-weight:700;padding:0 0 5px;border-bottom:1px solid currentColor}
.gift-featured{background:var(--teal);border-color:var(--teal);color:var(--c-white)}
.gift-featured .gift-number{color:var(--c-accent-on-dark-bright);border-color:var(--c-line-on-dark-strong)}
.gift-featured h3,.gift-featured p,.gift-featured button{color:var(--c-white)}

/* --- Responsive rules (all blocks) --- */
@media(max-width:991.98px){.hero-three{padding-top:55px}.hero-three-row{min-height:0}.hero-three .hero-visual{width:min(560px,90%);margin-left:auto}.hero-story-nav{margin-top:45px;max-width:none}.fundraising-section{padding:55px 0}.pillar-grid-bs article{border-left:0;border-top:1px solid var(--c-line-on-dark-soft)}.pillar-grid-bs article:first-child{border-top:0}.hospice-explainer{padding-bottom:85px}.explainer-photo{min-height:470px}.explainer-copy{margin:-55px 30px 0;padding:50px}.local-need,.donation-choices{padding:85px 0}}
@media(max-width:575.98px){.hero-three{padding-top:45px}.hero-three .hero-visual{width:100%}.hero-three .photo-frame img{height:330px}.hero-story-controls{align-items:center}.hero-story-nav{grid-template-columns:1fr;margin-inline:-15px;border-radius:0}.hero-story-nav button{border-left:0;border-top:1px solid var(--c-border-light);padding:13px 20px}.hero-story-nav button:first-child{border-top:0}.hero-pause{margin:0 0 0 5px;flex-basis:44px;width:44px;height:44px}.fundraising-section .progress-card{padding:22px 18px}.hospice-explainer{padding:10px 0 65px}.explainer-photo{min-height:350px}.explainer-photo:before{inset:12px -8px -12px 12px}.explainer-copy{margin:-28px 12px 0;padding:36px 28px}.local-need,.donation-choices{padding:65px 0}.gift-card{padding:30px}}

/* --- Photo and story --- */
.about-story{display:grid;grid-template-columns:1fr 1fr;gap:90px;align-items:center;padding:110px 0}
.about-photo{position:relative}
.about-photo img{width:100%;height:590px;object-fit:cover;border-radius:140px 8px 8px 8px}
.about-photo span{position:absolute;right:-25px;bottom:28px;background:var(--gold);color:var(--navy);font-weight:700;padding:14px 20px}

/* --- Latest updates --- */
.about-story .editorial-link{border:0;background:none;padding:0 0 5px}

/* --- Values --- */
.values-band{background:var(--navy);padding:100px 0}
.values-grid{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--c-line-on-dark)}
.values-grid article{padding:35px 28px;border-left:1px solid var(--c-line-on-dark)}
.values-grid article:first-child{border-left:0}
.values-grid b{color:var(--gold);font-size:0.75rem}
.values-grid h3{color:var(--c-white);margin:22px 0 12px}
.values-grid p{color:var(--c-text-on-dark)}

/* --- Lists: links, FAQ, news cards, staff --- */
.faq-list details{border-bottom:1px solid var(--c-border)}
.faq-list summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:42px 1fr auto;gap:16px;align-items:center;padding:26px 0;font-family:var(--open);font-size:1.4375rem;color:var(--navy)}
.faq-list summary::-webkit-details-marker{display:none}
.faq-list summary>span{font-family:var(--open);font-size:0.6875rem;color:var(--teal)}
.faq-list summary i{font-family:var(--open);font-style:normal;color:var(--teal);font-size:1.5625rem}
.faq-list details[open] summary i{transform:rotate(45deg)}
.faq-list details>div{padding:0 55px 22px}
.faq-list details p{color:var(--c-text-muted);max-width:760px}
.filter-buttons{display:flex;flex-wrap:wrap;gap:8px}

/* --- Events --- */
.filter-buttons button,.view-toggle button{border:1px solid var(--c-border-strong);border-radius:99px;background:var(--c-white);color:var(--c-text-muted);padding:8px 15px}
.filter-buttons button.active,.view-toggle button.active{background:var(--teal);border-color:var(--teal);color:var(--c-white)}

/* --- Lists: links, FAQ, news cards, staff --- */
.search-box{font-size:0.6875rem;text-transform:uppercase;font-weight:700;color:var(--c-text-muted);display:grid;gap:4px}
.search-box input{border:0;border-bottom:1px solid var(--c-border-input);padding:8px 2px;width:230px}
.news-listing{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;padding-bottom:110px}
.news-card{border:1px solid var(--c-border);border-radius:8px;overflow:hidden;background:var(--c-white)}
.news-card>img{width:100%;height:220px;object-fit:cover}
.news-card>div{padding:27px}
.news-card time{font-size:0.6875rem;color:var(--c-text-faint);margin-left:10px}
.news-card h2{font-size:1.6875rem;margin:18px 0}
.news-card p{color:var(--c-text-muted)}
.news-card a{color:var(--teal);font-weight:700;font-size:0.8125rem}
.news-card.featured{grid-column:span 2;display:grid;grid-template-columns:1.1fr .9fr}
.news-card.featured>img{height:100%;min-height:430px}
.news-card.featured>div{padding:48px}
.news-card.featured h2{font-size:2.5rem}

/* --- Events --- */
.event-feature{display:grid;grid-template-columns:1.05fr .95fr;gap:80px;align-items:center;padding:95px 0}
.event-feature-photo{position:relative}
.event-feature-photo img{width:100%;height:500px;object-fit:cover;border-radius:8px 120px 8px 8px}
.event-feature-photo>span{position:absolute;left:20px;top:20px;background:var(--gold);color:var(--navy);padding:6px 10px;font-size:0.6875rem;text-transform:uppercase;font-weight:700}
.event-quick{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:30px 0}
.event-quick span{display:flex;flex-direction:column;font-size:0.8125rem;color:var(--c-text-muted);border-left:3px solid var(--gold);padding-left:14px}
.event-quick b{color:var(--navy)}
.events-section{background:var(--c-wash);padding:90px 0}
.view-toggle{display:flex;gap:5px}
.event-list article{display:grid;grid-template-columns:100px 1.2fr 1fr auto;gap:28px;align-items:center;background:var(--c-white);border-top:1px solid var(--c-border);padding:22px 25px}
.event-list article:first-child{border-top:0}
.event-date{display:flex;flex-direction:column;align-items:center;border-right:1px solid var(--c-border)}
.event-date span,.event-date small{font-size:0.625rem;color:var(--teal);font-weight:700}
.event-date strong{font-family:var(--open);font-size:2.1875rem;color:var(--navy);line-height:1}
.event-info h3{margin:6px 0}
.event-info p{margin:0;color:var(--c-text-muted);font-size:0.8125rem}
.event-kind{font-size:0.625rem;text-transform:uppercase;color:var(--teal);letter-spacing:.1em}
.event-summary{font-size:0.875rem;color:var(--c-text-muted)}
.event-list article>button{border:1px solid var(--teal);color:var(--teal);background:var(--c-white);border-radius:99px;padding:9px 14px}

/* --- Responsive rules (all blocks) --- */
@media(max-width:991.98px){.about-story,.event-feature{grid-template-columns:1fr;gap:50px}.values-grid{grid-template-columns:1fr 1fr}.values-grid article:nth-child(3){border-left:0;border-top:1px solid var(--c-line-on-dark)}.news-listing{grid-template-columns:1fr 1fr}.event-list article{grid-template-columns:85px 1fr auto}.event-summary{display:none}}
@media(max-width:600px){.about-story,.event-feature{padding:65px 0}.values-grid,.news-listing{grid-template-columns:1fr}.about-photo img{height:390px}.about-photo span{right:0}.values-grid article{border-left:0!important;border-top:1px solid var(--c-line-on-dark)}.values-grid article:first-child{border-top:0}.search-box input{width:100%}.news-card.featured{grid-column:auto;display:block}.news-card.featured>img{min-height:0;height:240px}.news-card.featured>div{padding:27px}.news-card.featured h2{font-size:1.75rem}.event-feature-photo img{height:360px}.event-list article{grid-template-columns:65px 1fr}.event-list article>button{grid-column:2;justify-self:start}.event-date{grid-row:span 2}.faq-list summary{font-size:1.1875rem;grid-template-columns:30px 1fr auto}.faq-list details>div{padding-left:46px}.event-quick{grid-template-columns:1fr}}

/* --- Lists: links, FAQ, news cards, staff --- */
.board-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}
.board-grid.executive{grid-template-columns:repeat(3,1fr)}
.board-grid article{background:var(--c-white);border:1px solid var(--c-border);padding:25px;display:flex;gap:18px;align-items:center;min-height:135px}
.board-grid article>span{width:58px;height:58px;flex:0 0 58px;border-radius:50%;background:var(--navy);color:var(--c-white);display:grid;place-items:center;font-family:var(--open);font-weight:700}
.board-grid h3{font-size:1.25rem}
.board-grid b,.board-grid small{display:block;font-size:0.6875rem}
.board-grid b{color:var(--teal);margin:5px 0}
.board-grid small{color:var(--c-text-muted)}

/* --- Documents --- */
.document-tools{padding:80px 0 35px;display:flex;justify-content:space-between;align-items:end;gap:35px}
.document-list{padding-bottom:100px}
.document-list article{display:grid;grid-template-columns:70px 1fr auto;gap:25px;align-items:center;border-top:1px solid var(--c-border);padding:25px 4px}
.document-list article:last-child{border-bottom:1px solid var(--c-border)}
.doc-icon{width:55px;height:65px;background:var(--c-light-green);color:var(--teal);display:grid;place-items:center;font-size:0.6875rem;font-weight:700;clip-path:polygon(0 0,75% 0,100% 22%,100% 100%,0 100%)}
.document-list small{color:var(--teal);text-transform:uppercase;letter-spacing:.1em;font-size:0.625rem}
.document-list h3{margin:6px 0}
.document-list p{margin:0;color:var(--c-text-muted);font-size:0.8125rem}
.document-list a{color:var(--teal);font-weight:700;border:1px solid var(--teal);border-radius:99px;padding:9px 14px}

/* --- Volunteer opportunities --- */
.volunteer-opportunities{background:var(--c-wash);padding:85px 0}
.opportunity-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}
.opportunity-grid article{background:var(--c-white);border:1px solid var(--c-border);padding:30px;display:flex;flex-direction:column;min-height:300px}
.opportunity-grid article>span{color:var(--gold);font-weight:700}
.opportunity-grid article>small{color:var(--teal);text-transform:uppercase;letter-spacing:.1em;margin-top:22px}
.opportunity-grid h3{font-size:1.6875rem;margin:8px 0 15px}
.opportunity-grid p{color:var(--c-text-muted)}
.opportunity-grid label{margin-top:auto;border-top:1px solid var(--c-border);padding-top:16px;font-weight:700;color:var(--teal)}

/* --- Gallery and albums --- */
.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);grid-auto-rows:280px;gap:15px;padding-bottom:100px}
.gallery-grid button{position:relative;border:0;padding:0;overflow:hidden;background:var(--c-placeholder);text-align:left}
.gallery-grid button.gallery-large{grid-column:span 2;grid-row:span 2}
.gallery-grid img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.gallery-grid button:hover img{transform:scale(1.04)}
.gallery-grid button>span{position:absolute;inset:auto 0 0;padding:50px 22px 20px;background:linear-gradient(transparent,var(--c-overlay));color:var(--c-white);display:flex;flex-direction:column}
.gallery-grid small{text-transform:uppercase;letter-spacing:.1em;color:var(--c-accent-on-dark)}
.gallery-grid b{font-family:var(--open);font-size:1.25rem}

/* --- Sponsors --- */
.sponsor-showcase{background:var(--c-wash);padding:90px 0}
.sponsor-heading{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:end;margin-bottom:45px}
.sponsor-heading p{color:var(--c-text-muted)}
.sponsor-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.sponsor-grid a{background:var(--c-white);border:1px solid var(--c-border);min-height:155px;padding:25px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px}
.sponsor-grid a>span{font-family:var(--open);font-size:1.625rem;color:var(--c-text-ghost);letter-spacing:.15em}
.sponsor-grid b{font-size:0.6875rem;color:var(--teal);text-transform:uppercase;text-align:center}
.sponsor-disclaimer{display:block;margin-top:18px;color:var(--c-text-faint)}

/* --- Gallery and albums --- */
.album-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;padding-bottom:100px}
.album-grid>button{border:1px solid var(--c-border);background:var(--c-white);padding:0;text-align:left;display:grid;grid-template-columns:1.05fr .95fr;min-height:315px;overflow:hidden}
.album-cover{position:relative;min-height:315px;overflow:hidden}
.album-cover img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.album-grid>button:hover .album-cover img{transform:scale(1.04)}
.album-cover span{position:absolute;left:16px;bottom:16px;background:var(--gold);color:var(--navy);font-size:0.6875rem;font-weight:700;padding:7px 11px}
.album-grid>button>div:last-child{padding:30px;align-self:center}
.album-grid small{color:var(--teal);text-transform:uppercase;letter-spacing:.1em}
.album-grid h3{font-size:1.6875rem;margin:10px 0}
.album-grid p{color:var(--c-text-muted);font-size:0.8125rem}
.album-grid b{display:block;color:var(--teal);margin-top:22px}
.album-landing button>span{padding-top:80px}
.album-landing button>span em{font-style:normal;font-size:0.75rem;color:var(--c-text-on-dark-bright);margin-top:7px;max-width:390px}

/* --- Responsive rules (all blocks) --- */
@media(max-width:991.98px){.sponsor-heading{grid-template-columns:1fr;gap:40px}.board-grid,.board-grid.executive{grid-template-columns:1fr 1fr}.opportunity-grid{grid-template-columns:1fr 1fr}.sponsor-grid{grid-template-columns:1fr 1fr}.document-tools{align-items:flex-start;flex-direction:column}.gallery-grid{grid-template-columns:1fr 1fr}.album-grid{grid-template-columns:1fr}}
@media(max-width:600px){.board-grid,.board-grid.executive,.opportunity-grid,.sponsor-grid,.gallery-grid,.album-grid{grid-template-columns:1fr}.volunteer-opportunities,.sponsor-showcase{padding:65px 0}.document-list article{grid-template-columns:55px 1fr}.document-list article>a{grid-column:2;justify-self:start}.album-grid>button{grid-template-columns:1fr}.album-cover{min-height:250px}.gallery-grid{grid-auto-rows:300px}.gallery-grid button.gallery-large{grid-column:auto;grid-row:auto}.sponsor-heading{margin-bottom:30px}}

/* --- Featured story hero --- */
.concept-three .hero-three h1{font-size:clamp(2.5rem,3.6vw,3rem)}

/* --- Responsive rules (all blocks) --- */
@media(max-width:600px){.concept-three .hero-three h1{font-size:clamp(2.125rem,8vw,2.5rem)}}

/* --- Picture and panel (explainer) --- */
.g-0>.explainer-copy{padding:clamp(48px,5vw,68px) clamp(42px,6vw,76px)}

/* --- Responsive rules (all blocks) --- */
@media (min-width:992px){.hospice-explainer .row{align-items:stretch}.hospice-explainer .explainer-photo{min-height:0}.hospice-explainer .explainer-photo img{position:absolute;inset:0;width:100%;height:100%}.hospice-explainer .explainer-copy{align-self:stretch;display:flex;flex-direction:column;justify-content:center}}
@media (max-width:575.98px){.g-0>.explainer-copy{padding:36px 28px}}

/* --- Ways to give --- */
.gift-card>a{margin-top:auto;align-self:flex-start;color:var(--teal);font-weight:700;padding:0 0 5px;border-bottom:1px solid currentColor}
.gift-featured>a{color:var(--c-white)}

/* --- Events --- */
.event-list article>a{border:1px solid var(--teal);color:var(--teal);background:var(--c-white);border-radius:99px;padding:9px 14px;white-space:nowrap}


/* ============================== 3. COLOUR STYLES AND BOXES (Block Styles screen) ==============================
 * Colour styles: standalone classes. Put the same class in a container style or a box style in Block Styles.
 * To add a colour: add it to the COLOURS list at the top, copy one of the rules below, change the name, then add a row
 * in Block Styles (Container style and/or Box style) with the new class name.
 */
.bg-none{background:transparent}
.bg-light-grey{background:var(--c-light-grey)}
.bg-light-green{background:var(--c-light-green)}
.bg-light-blue{background:var(--c-light-blue)}
.bg-green-site{background:var(--c-green-wash)}
.bg-white-site{background:#fff}
.bg-primary-site{background:var(--c-primary);color:var(--c-primary-text)}
.bg-primary-site h1,.bg-primary-site h2,.bg-primary-site h3,.bg-primary-site h4,.bg-primary-site h5,.bg-primary-site h6{color:var(--c-primary-text)}
.bg-primary-site .eyebrow{color:var(--c-primary-text);opacity:.9}
.bg-primary-site a:not(.primary):not(.text-button){color:var(--c-primary-text);text-decoration:underline;text-underline-offset:3px}

/* Every content block that is a band of its own */
.page-block{padding:clamp(40px,6vw,72px) 0}
.page-block:empty{display:none}

/* Box widths */
.block-width-mid{width:min(75%,1200px);margin-inline:auto}
.block-width-full{width:100%;padding-inline:24px}
@media(max-width:991.98px){.block-width-mid{width:min(100% - 48px,1200px)}}
@media(max-width:600px){.block-width-mid{width:min(100% - 30px,1200px)}.block-width-full{padding-inline:15px}}

/* Box styles (inside the band). Every box style gets this padding; a style can set its own padding after it. */
.block-box{padding:clamp(24px,3vw,40px)}
.block-box>:first-child{margin-top:0}
.block-box>:last-child{margin-bottom:0}

.block-card{border:1px solid var(--c-border);border-radius:8px;padding:clamp(24px,3vw,40px);background:var(--c-white)}
.bg-primary-site .block-card{color:var(--ink)}
.bg-primary-site .block-card h2,.bg-primary-site .block-card h3{color:var(--navy)}

/* --- Picture and panel with the picture on the right (desktop; on a phone the picture stays on top) --- */
@media (min-width:992px){
  .hospice-explainer.explainer-right .explainer-photo{order:2}
  .hospice-explainer.explainer-right .explainer-copy{order:1;z-index:1;margin-left:0;margin-right:-50px;border-left:0;border-right:4px solid var(--gold)}
  .hospice-explainer.explainer-right .explainer-photo:before{inset:25px 25px -25px -25px;border-radius:8px 140px 8px 8px}
  .hospice-explainer.explainer-right .explainer-photo img{border-radius:8px 140px 8px 8px}
}

/* --- Picture and panel: photo shape and which part stays in view --- */
.hospice-explainer.ex-focus-left .explainer-photo img{object-position:left center}
.hospice-explainer.ex-focus-centre .explainer-photo img{object-position:center center}
.hospice-explainer.ex-focus-right .explainer-photo img{object-position:right center}
.hospice-explainer:is(.ex-shape-wide,.ex-shape-whole) .explainer-photo{min-height:0;align-self:center}
.hospice-explainer:is(.ex-shape-wide,.ex-shape-whole) .explainer-photo img{position:relative;inset:auto;height:auto}
.hospice-explainer.ex-shape-wide .explainer-photo img{aspect-ratio:3/2;object-fit:cover}
.hospice-explainer.ex-shape-whole .explainer-photo img{aspect-ratio:auto;object-fit:contain}
@media (min-width:992px){
  .hospice-explainer:is(.ex-shape-wide,.ex-shape-whole) .explainer-photo img{position:relative;inset:auto;height:auto}
  .hospice-explainer:is(.ex-shape-wide,.ex-shape-whole) .explainer-copy{align-self:center}
}
