/* v6: consistent glass header, media-sized hero and stable canvas background */
.site-header,.site-header.chrome-custom{
  background:rgba(248,249,247,.80)!important;
  -webkit-backdrop-filter:blur(23px) saturate(120%)!important;
  backdrop-filter:blur(23px) saturate(120%)!important;
  border-bottom:1px solid rgba(28,38,31,.11);
  color:#172018!important;
}
.site-header .header-mark,.site-header .site-nav a,.site-header.chrome-custom .header-mark,.site-header.chrome-custom .site-nav a{color:#26332a!important;text-shadow:none!important}
.site-header .site-nav a.active,.site-header .site-nav a:hover{color:#101b13!important}
.site-header .site-nav a.active:after{background:#172018!important}
.site-header .header-row{border-bottom:0}
.site-header .mobile-menu-toggle span{background:#172018}
.site-footer,.site-footer.chrome-custom{background:transparent!important;color:#1b1e1b!important}
.site-footer .footer-panel,.site-footer.chrome-custom .footer-panel{background:#1b1e1b!important;color:#f4f4f0!important;border:0!important}
.site-footer .footer-panel h2,.site-footer .footer-panel .footer-eyebrow,.site-footer .footer-panel p,.site-footer .footer-panel .contact-links,.site-footer.chrome-custom .footer-panel h2,.site-footer.chrome-custom .footer-panel p{color:#f4f4f0!important}
.site-footer .footer-panel p:not(.footer-eyebrow){color:#bec2bc!important}
.site-footer .contact-entry{color:#f4f4f0!important;border-color:#48514b!important}
.site-footer .footer-bottom{color:#757e76!important}
.page-backdrop{position:fixed!important;inset:0!important;z-index:-1!important;pointer-events:none!important}
.page-backdrop::before{inset:0!important;background-position:center!important;transform:none!important;background-size:cover!important}
main{isolation:isolate}
.page-foreground{position:relative;z-index:1}
/* The visual's backing is never larger than its image/video dimensions. */
.hero-visual[data-hero-media]:not(.empty){
  width:100%!important;height:auto!important;
  aspect-ratio:var(--hero-aspect,1.4)!important;
  max-width:min(100%,var(--hero-max-width,760px))!important;
  justify-self:center;align-self:center;background:transparent!important;
}
.hero-visual[data-hero-media]:not(.empty)::after{display:none}
@media(max-width:720px){.hero-visual[data-hero-media]:not(.empty){margin-inline:auto}}

.page-backdrop{display:none!important}

/* v7: deterministic grid slots. Visual placement follows the editor list. */
@media (min-width: 981px) {
  .gallery-grid.smart-gallery .gallery-card {
    grid-column:var(--gallery-col,auto) / span var(--gallery-span,4)!important;
    grid-row:var(--gallery-row,auto) / span var(--gallery-rows,13)!important;
  }
}
/* Small devices deliberately use natural document order instead of desktop slots. */
@media (max-width: 980px) {
  .gallery-grid.smart-gallery { grid-auto-flow:row!important; grid-auto-rows:auto!important; }
  .gallery-grid.smart-gallery .gallery-card {
    grid-column:span 6!important;grid-row:auto!important;
    height:auto!important;min-height:0!important;aspect-ratio:1.15!important;
  }
}
@media (max-width: 600px) {
  .gallery-grid.smart-gallery .gallery-card {
    grid-column:span 12!important;grid-row:auto!important;
    aspect-ratio:1.3!important;
  }
}

/* A highlighted drop target tells the editor that the two cards will swap. */
.gallery-grid.smart-gallery .gallery-card.is-drop-target {
  outline:3px solid #63ad7b!important;
  outline-offset:3px;
  box-shadow:0 0 0 7px rgba(97,173,123,.18);
}
