/* Mainbrace's section proportions, with Impact's live Elementor kit: Archivo headings,
   Open Sans body, #0DACF0 pill buttons, 1200px content width. Fonts come from the site. */
body.single-project .site-content > .ast-container { display: block; max-width: none; padding: 0; }
body.single-project #primary.impact-project { float: none; width: 100%; margin: 0; padding: 0; border: 0; }
.impact-project { --impact-blue: #0dacf0; --impact-blue-hover: #6ec1e4; --impact-dark: #1d2228; --impact-text: #54595f; --impact-head: 'Archivo', Arial, sans-serif; color: var(--impact-text); background: #fff; font-family: 'Open Sans', Arial, sans-serif; font-size: 18px; line-height: 1.7; }
.impact-project, .impact-project * { box-sizing: border-box; }
.impact-project a { color: #0a8cc4; text-decoration: none; }
.impact-project a:hover { text-decoration: underline; }
.impact-project :focus-visible { outline: 3px solid #0879af; outline-offset: 4px; }
.impact-project-hero { position: relative; height: 100vh; height: 100svh; min-height: 480px; background: var(--impact-dark); overflow: hidden; }
.impact-project-hero__image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* The overlay stays within the photo and protects the existing white header. */
.impact-project-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.76) 0%, rgba(0,0,0,.35) 24%, rgba(0,0,0,.08) 60%); }
.impact-project-icons { padding: 50px 30px 56px; background: var(--impact-blue); color: white; }
.impact-project-icons ul { display: flex; justify-content: center; gap: 40px; max-width: 1200px; padding: 0; margin: 0 auto; list-style: none; }
.impact-project-icons li { flex: 1 1 0; min-width: 0; display: flex; align-items: center; flex-direction: column; text-align: center; }
.impact-project-icons svg { width: 52px; height: 52px; margin-bottom: 18px; color: #fff; flex-shrink: 0; }
.impact-project-icons strong { display: block; margin-bottom: 8px; font-family: var(--impact-head); font-size: clamp(24px, 2.4vw, 34px); font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.impact-project-icons span span { display: block; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.impact-project-container-xs { max-width: 750px; margin: auto; padding: 0 40px; }
.impact-project-copy { padding: 80px 0 64px; }
.impact-project-back { display: inline-block; margin-bottom: 50px; }
.impact-project h1, .impact-project-contact h2 { font-family: var(--impact-head); font-weight: 600; text-transform: uppercase; letter-spacing: 0; }
.impact-project h1 { font-size: 48px; line-height: 1.15; color: #1d2228; margin: 0 0 28px; overflow-wrap: break-word; }
.impact-project-description { margin-bottom: 50px; }
.impact-project-description p { margin: 0 0 24px; }
.impact-project-description p:last-child { margin-bottom: 0; }
.impact-project-description ul, .impact-project-description ol { margin: 0 0 24px; padding-left: 24px; }
.impact-project-share { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 0; }
.impact-project-share h2 { margin: 0 8px 0 0; font: 600 16px/1 var(--impact-head); color: #1d2228; text-transform: uppercase; letter-spacing: .08em; }
.impact-project-share a { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 8px 22px; border: 1px solid var(--impact-blue); border-radius: 50px; color: #0a8cc4; font: 600 15px/1 var(--impact-head); }
.impact-project-share a:hover { background: var(--impact-blue); color: #fff; text-decoration: none; }
.impact-project-gallery { max-width: 1280px; padding: 0 40px; margin: 0 auto 90px; }
.impact-project-carousel { position: relative; }
.impact-project-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; overscroll-behavior-x: contain; }
.impact-project-track::-webkit-scrollbar { height: 6px; }
.impact-project-track::-webkit-scrollbar-thumb { background: #aaa; }
.impact-project-slide { position: relative; flex: 0 0 100%; width: 100%; aspect-ratio: 1.6; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: #e9edf0; }
.impact-project-slide__image { width: 100%; height: 100%; display: block; object-fit: cover; }
.impact-project-controls[hidden] { display: none; }
.impact-project-controls button { cursor: pointer; border: 0; border-radius: 0; box-shadow: none; }
.impact-project-prev, .impact-project-next { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 56px; padding: 0; background: rgba(0,0,0,.45); color: white; font: 48px/1 Arial, sans-serif; }
.impact-project-prev { left: 15px; }
.impact-project-next { right: 15px; }
.impact-project-controls button:hover { background: var(--impact-blue); color: white; }
.impact-project-controls button:disabled { opacity: .25; cursor: default; }
.impact-project-dots { position: absolute; top: 100%; width: 100%; display: flex; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.impact-project-dots button { width: 32px; height: 32px; padding: 0; background: transparent; display: grid; place-items: center; }
.impact-project-dots button::before { content: ''; display: block; border-radius: 50%; width: 9px; height: 9px; background: #dedad8; }
.impact-project-dots button[aria-current='true']::before { background: #766d69; }
.impact-project-contact { text-align: center; background: var(--impact-dark); color: #fff; padding: 65px 30px; }
.impact-project-contact h2 { margin: 0 0 30px; color: white; font-size: 40px; line-height: 1.2; }
.impact-project a.impact-project-button { display: inline-block; padding: 14px 36px; border-radius: 50px; background: var(--impact-blue); color: white; font: 600 18px/1.2 var(--impact-head); }
.impact-project a.impact-project-button:hover { background: var(--impact-blue-hover); text-decoration: none; }
.impact-project-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* These bars exist only in the static comparison preview. */
.impact-preview { margin: 0; }
.impact-preview-header { position: absolute; z-index: 2; inset: 0 0 auto; height: 110px; display: flex; align-items: center; padding: 0 40px; background: #18242e; color: #fff; font: 14px Arial, sans-serif; }
.impact-preview-footer { padding: 50px 30px; background: #111a21; color: white; font: 14px Arial, sans-serif; text-align: center; }
@media (max-width: 1199px) and (min-width: 640px) {
  .impact-project-gallery { padding: 0 30px; }
  .impact-project-icons ul { gap: 24px; }
  .impact-project-icons strong { font-size: 26px; }
}
@media (max-width: 639px) {
  .impact-project-hero { min-height: 420px; }
  .impact-project-icons { padding: 40px 30px; }
  .impact-project-icons ul { flex-direction: column; gap: 30px; }
  .impact-project-icons li { flex-direction: row; text-align: left; gap: 20px; }
  .impact-project-icons svg { width: 40px; height: 40px; margin: 0; }
  .impact-project-icons strong { font-size: 22px; margin-bottom: 2px; }
  .impact-project-container-xs { padding: 0 20px; }
  .impact-project-copy { padding: 50px 0; }
  .impact-project-back { margin-bottom: 25px; }
  .impact-project h1 { font-size: 32px; margin-bottom: 20px; }
  .impact-project { font-size: 16px; }
  .impact-project-description { margin-bottom: 30px; }
  .impact-project-copy { padding-bottom: 40px; }
  .impact-project-gallery { padding: 0 20px; margin-bottom: 90px; }
  .impact-project-prev { left: 8px; }
  .impact-project-next { right: 8px; }
  .impact-project-contact { padding: 40px 20px; }
  .impact-project-contact h2 { font-size: 28px; }
  .impact-preview-header { height: 90px; padding: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .impact-project-track { scroll-behavior: auto; }
}
