/* Blog and locally hosted short-post galleries. Shared site styles are in activity.css. */
.blog-eyebrow,.blog-kicker{color:#34743a;font-size:.76rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.blog-section{padding-block:clamp(2.5rem,5vw,4.5rem);scroll-margin-top:6rem}
.section-heading{display:flex;align-items:end;justify-content:space-between;gap:1.5rem;margin-bottom:1.8rem}
.section-heading h1,.section-heading h2{font-size:clamp(1.6rem,3vw,2.2rem);margin:.25rem 0}
.section-heading p{margin:0;max-width:550px;color:#5b6879}
.blog-count{white-space:nowrap;border:1px solid #c6d4c8;padding:.4rem .9rem;border-radius:999px;font-size:.84rem;font-weight:800}
.feature-story{display:grid;grid-template-columns:1.1fr 1fr;overflow:hidden;background:#173e29;color:white;border-radius:24px;margin-bottom:1.5rem}
.feature-story>a{display:flex;align-items:stretch;background:#e9efe2}
.feature-story img{width:100%;height:100%;min-height:340px;object-fit:contain}
.feature-copy{padding:clamp(1.5rem,3vw,2.8rem);align-self:center}
.feature-copy .blog-kicker{color:#c4e4ad}
.feature-copy h2{font-size:clamp(1.5rem,2.7vw,2.15rem);line-height:1.25;margin:.75rem 0}
.feature-copy a{color:inherit;text-decoration:none}
.feature-copy p{color:#e0ebdf;margin:1rem 0}
.feature-link{display:inline-block;font-weight:800;border-bottom:1px solid #bdcfbd;padding-bottom:.2rem}
.blog-date{font-size:.85rem;color:#5b6879}
.feature-copy .blog-date{color:#d2e2ce}
.blog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.4rem}
.article-card,.short-card{border:1px solid #dfe6dc;border-radius:18px;overflow:hidden;background:white}
.article-card>a,.short-card>a{display:block;color:inherit;text-decoration:none;height:100%}
.article-card img{width:100%;height:220px;object-fit:cover}
.card-copy{padding:1.3rem}
.card-copy h2,.card-copy h3{font-size:1.15rem;margin:.65rem 0;line-height:1.4}
.card-copy p{font-size:.95rem;margin:.65rem 0;color:#5b6879}
.card-link{display:block;margin-top:1rem;color:#286334;font-size:.88rem;font-weight:800}
.article-card:hover,.short-card:hover{border-color:#6f9c72;box-shadow:0 8px 24px #1b44290c}
.brief-section{background:#f7f8f3}
.short-card .short-photo{position:relative;background:#e6e9e2}
.short-card img{width:100%;height:280px;object-fit:cover}
.short-card--poster img{object-fit:contain;padding:.5rem}
.photo-count{position:absolute;right:.8rem;bottom:.8rem;background:#fff;color:#234832;padding:.3rem .7rem;border-radius:999px;font-size:.75rem;font-weight:800;box-shadow:0 2px 8px #0002}
.short-card time{font-size:.8rem;color:#5b6879}
.short-card .card-copy p{font-size:.9rem}
.blog-note{padding:1.5rem 0;color:#5b6879;font-size:.9rem}
.blog-article-head{padding:2.5rem 0;background:#f1f6ef}
.blog-article-head .article-heading{max-width:900px}
.blog-article-head h1{font-size:clamp(1.9rem,4vw,3.25rem);line-height:1.15;letter-spacing:-.025em}
.blog-cover{margin:1.8rem 0 0}
.blog-cover img{width:100%;max-height:550px;object-fit:cover;border-radius:18px}
.blog-cover figcaption,.post-gallery figcaption{font-size:.85rem;color:#53645a;margin-top:.6rem}
.blog-reading{max-width:800px;margin:0 auto;padding:2.5rem var(--gutter) 3.5rem}
.blog-reading h2{font-size:1.55rem;margin-top:2rem}
.blog-reading h3{font-size:1.15rem;margin-top:1.6rem}
.blog-reading p,.blog-reading li{font-size:1.05rem}
.blog-reading li{margin-bottom:.65rem}
.campaign-notice{background:#edf4e8;border-left:4px solid #34743a;padding:1.15rem 1.4rem;margin:1.5rem 0;border-radius:0 10px 10px 0}
.campaign-notice p{margin:.3rem 0}
.campaign-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:1.5rem 0}
.campaign-facts div{padding:1rem;background:#f1f6ef;border-radius:12px}
.campaign-facts dt{font-size:.8rem;color:#53645a}
.campaign-facts dd{margin:.3rem 0 0;color:#245e35;font-size:1.15rem;font-weight:800}
.blog-reading figure{margin:1.5rem 0}
.blog-reading figure img{border-radius:12px}
.blog-reading figcaption{font-size:.85rem;color:#5b6879}
.post-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem}
.post-gallery figure{margin:0}
.post-gallery img{width:100%;height:420px;object-fit:contain;background:#eef1eb;border-radius:12px}
.post-gallery a{display:block}
.breve-page{padding-block:2rem 3rem}
.breve-page .article-heading{max-width:780px;margin-bottom:2rem}
.gallery-dialog{width:min(1100px,calc(100% - 2rem));max-width:none;max-height:calc(100dvh - 2rem);padding:0;border:0;border-radius:20px;color:#2f3c4c;background:#fff;overscroll-behavior:contain}
.gallery-dialog::backdrop{background:rgba(0,0,0,.4);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.gallery-panel{position:relative;display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr)}
.gallery-close{position:absolute;right:.65rem;top:.65rem;z-index:2;border:0;background:#fff;color:#262626;box-shadow:0 2px 10px #0002;border-radius:50%;width:44px;height:44px;cursor:pointer;font-size:1.4rem;line-height:1}
.gallery-visual{background:#181818;min-width:0;padding:1rem;display:flex;flex-direction:column;justify-content:center}
.gallery-stage{min-height:260px;height:min(65dvh,620px);display:flex;align-items:center;justify-content:center;touch-action:pan-y}
.gallery-stage img{max-height:100%;height:100%;width:100%;object-fit:contain}
.gallery-controls{display:flex;align-items:center;justify-content:space-between;gap:.6rem;padding-top:.8rem;color:white}
.gallery-controls button{border:1px solid #707070;background:#333;color:white;min-width:44px;min-height:44px;border-radius:50%;cursor:pointer;font-size:1.25rem}
.gallery-controls button:disabled{opacity:.35;cursor:default}
.gallery-position{font-size:.85rem;margin:0}
.gallery-info{padding:3.7rem 1.75rem 1.5rem;align-self:center;min-width:0;overflow-wrap:anywhere}
.gallery-info h2{font-size:1.5rem;line-height:1.3;margin:.75rem 0}
.gallery-info time{color:#5b6879;font-size:.85rem}
.gallery-info p{font-size:.96rem}
.gallery-caption{color:#6b6b6b;font-size:.82rem!important}
.gallery-error{color:white;text-align:center}
body.gallery-open{overflow:hidden}
@media(max-width:900px){.blog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.feature-story{grid-template-columns:1fr 1fr}.gallery-info{padding-inline:1.2rem}.gallery-info h2{font-size:1.25rem}}
@media(max-width:640px){.feature-story{grid-template-columns:1fr}.feature-story img{min-height:0;aspect-ratio:16/10}.blog-grid{grid-template-columns:1fr}.article-card img{height:auto;aspect-ratio:16/10}.short-card img{height:300px}.section-heading{align-items:start;flex-direction:column;gap:.6rem}.campaign-facts{grid-template-columns:1fr}.post-gallery{grid-template-columns:1fr}.post-gallery img{height:auto;max-height:650px}.gallery-panel{grid-template-columns:1fr}.gallery-stage{height:47dvh;min-height:180px}.gallery-info{padding:1.3rem}.gallery-dialog{width:calc(100% - 1rem);max-height:calc(100dvh - 1rem);border-radius:14px}.gallery-info h2{font-size:1.3rem}.gallery-visual{padding:.75rem}.gallery-close{top:.4rem;right:.4rem}.gallery-info p{font-size:.9rem}.blog-article-head{padding-top:1.5rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.gallery-dialog [hidden]{display:none!important}

/* Illustrated headers for the Lake Tanganyika stories. */
.blog-article-head--illustrated {
  background: #fff;
  padding-block: clamp(.85rem, 2svh, 1.5rem);
}
.blog-article-head--illustrated .breadcrumb {
  margin-bottom: .45rem;
}
.story-hero {
  --story-hero-ratio: 1.737;
  margin: .35rem 0 0;
}
.story-hero--artisan {
  --story-hero-ratio: 1.271;
}
.story-hero__stage {
  --story-hero-budget: clamp(15rem, calc(100svh - 15.5rem), 35rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, calc(var(--story-hero-budget) * var(--story-hero-ratio)));
  margin-inline: auto;
  container-type: inline-size;
  position: relative;
  isolation: isolate;
}
.story-hero__stage::before {
  --story-hero-background: #dbe9da;
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--story-hero-background);
  box-shadow: 0 0 0 100vmax var(--story-hero-background);
  clip-path: inset(0 -100vmax);
}
.blog-article-head .story-hero__heading {
  grid-area: 1 / 1;
  align-self: start;
  z-index: 1;
  width: 79%;
  max-width: none;
  margin: clamp(.3rem, 1.8cqi, 1.15rem) 0 0;
}
.story-hero__heading .article-meta {
  gap: .25rem .55rem;
  margin-bottom: .45rem;
  font-size: clamp(.57rem, 1.35cqi, .72rem);
}
.blog-article-head .story-hero__heading h1 {
  margin: 0;
  color: #153b2a;
  font-size: clamp(1.4rem, 5.15cqi, 3.25rem);
  line-height: 1.05;
  letter-spacing: -.042em;
  text-wrap: balance;
}
.blog-article-head .story-hero--artisan .story-hero__heading {
  justify-self: end;
  width: 56%;
  margin-top: clamp(.9rem, 6cqi, 3.7rem);
}
.story-hero__art {
  display: block;
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
}
.story-hero figcaption {
  margin: .45rem auto 0;
  color: #53645a;
  font-size: .78rem;
  line-height: 1.4;
  text-align: center;
}
.story-hero__intro {
  max-width: 760px;
  margin: .7rem auto 0;
}
.story-hero__intro .article-lede {
  max-width: none;
  font-size: clamp(.91rem, .3vw + .85rem, 1.04rem);
  line-height: 1.55;
}
.story-hero__intro .blog-date {
  margin: .4rem 0 0;
}
@media (max-width: 650px) {
  .story-hero__stage {
    width: 100%;
  }
  .blog-article-head .story-hero .story-hero__heading {
    grid-area: auto;
    justify-self: start;
    width: 100%;
    margin-top: .25rem;
  }
  .blog-article-head .story-hero__heading h1 {
    font-size: clamp(1.55rem, 6.15vw, 2.55rem);
  }
  .story-hero__art {
    grid-area: auto;
    max-height: clamp(8rem, 35svh, 17rem);
    margin-top: -4%;
  }
  .story-hero--artisan .story-hero__art {
    margin-top: -7%;
  }
  .story-hero figcaption {
    text-align: left;
  }
}
