/* B2: full-viewport single-photo gallery and resilient footer layout. */
.heritage .mh-work-full{width:100%;max-width:none;padding:42px 0 34px;margin:0;border:0;overflow:hidden}
.heritage .mh-work-full .mh-section-title{display:block;margin-bottom:20px}
.heritage .mh-work-full .mh-section-title h2{margin:0}
.heritage .mh-work-full .mh-gallery{position:relative;width:100%;margin:0;min-width:0}
.heritage .mh-work-full .mh-gallery-track{display:flex;flex-wrap:nowrap;position:relative;width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;gap:0;padding:0;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
.heritage .mh-work-full .mh-gallery-track::-webkit-scrollbar{display:none}
.heritage .mh-work-full .mh-slide{flex:0 0 100%;width:100%;min-width:0;max-width:100%;margin:0;scroll-snap-align:start;scroll-snap-stop:always}
.heritage .mh-work-full .mh-slide img{width:100%;height:clamp(320px,48vw,760px);aspect-ratio:auto;object-fit:cover;object-position:center;display:block}
.heritage .mh-work-full .mh-slide figcaption{display:flex;flex-direction:column;gap:4px;padding:18px var(--edge) 22px;min-height:90px;background:var(--paper)}
.heritage .mh-work-full .mh-gallery-controls{position:absolute;right:var(--edge);bottom:111px;z-index:2;display:flex;align-items:center;gap:10px;padding:9px;background:var(--paper);border:1px solid var(--line)}
.heritage .mh-work-full .mh-gallery-controls span{display:inline;font-size:.8rem;white-space:nowrap;padding:0 8px}
.heritage .mh-work-full .mh-gallery-controls button{display:grid;place-items:center;width:48px;height:48px;border-radius:0;background:var(--ink);color:var(--paper);border:1px solid var(--ink);font-size:1.4rem}
.heritage .mh-work-full .mh-gallery-controls button:disabled{background:transparent;color:var(--ink);opacity:.42}
.heritage .mh-work-full .mh-gallery-progress{height:2px;margin:0 var(--edge);background:var(--line)}
.heritage .mh-work-full .mh-note{margin-top:14px}
/* Explicit grid and block links: do not inherit generic footer flex or heading typography. */
.heritage footer.mh-footer{display:block;width:100%;padding:0;background:var(--paper);color:var(--ink);border-top:1px solid var(--ink)}
.heritage footer.mh-footer>.footer-inner{display:grid;width:100%;max-width:1440px;margin:0 auto;padding:52px var(--edge) 44px;grid-template-columns:minmax(200px,1.35fr) repeat(4,minmax(0,1fr));gap:clamp(22px,3vw,48px);align-items:start;justify-content:initial;flex-wrap:nowrap}
.heritage footer.mh-footer .mh-footer-brand{min-width:0}
.heritage footer.mh-footer .mh-footer-brand img{width:190px;max-width:100%;height:auto;margin:0 0 18px}
.heritage footer.mh-footer .mh-footer-brand p{font-size:.88rem;line-height:1.65;margin:0 0 12px;color:var(--muted)}
.heritage footer.mh-footer nav{display:flex;flex-direction:column;align-items:flex-start;gap:13px;min-width:0;margin:0;padding:0}
.heritage footer.mh-footer nav h2{font-family:Arial,Helvetica,sans-serif;font-size:.8rem;line-height:1.4;letter-spacing:.13em;text-transform:uppercase;font-weight:600;color:var(--accent);margin:4px 0 8px}
.heritage footer.mh-footer nav a{display:block;max-width:100%;font-family:Arial,Helvetica,sans-serif;font-size:.92rem;font-weight:400;line-height:1.5;color:var(--muted);overflow-wrap:break-word}
.heritage footer.mh-footer nav a:hover{text-decoration:underline;color:var(--ink)}
.heritage footer.mh-footer>.mh-footer-bottom{display:flex;max-width:1440px;margin:0 auto;padding:20px var(--edge) 24px;justify-content:space-between;gap:20px;border-top:1px solid var(--line);font-size:.76rem;line-height:1.55;color:var(--muted)}
@media(max-width:1100px){.heritage footer.mh-footer>.footer-inner{grid-template-columns:repeat(4,minmax(0,1fr));gap:28px}.heritage footer.mh-footer .mh-footer-brand{grid-column:1/-1}}
@media(max-width:768px){.heritage footer.mh-footer>.footer-inner{grid-template-columns:repeat(2,minmax(0,1fr));padding-block:34px;gap:28px 20px}.heritage footer.mh-footer>.mh-footer-bottom{flex-direction:column;gap:8px}.heritage .mh-work-full{padding:30px 0}.heritage .mh-work-full .mh-slide img{height:clamp(270px,70vw,520px)}.heritage .mh-work-full .mh-gallery-controls{bottom:108px;padding:6px;gap:6px}.heritage .mh-work-full .mh-gallery-controls button{width:42px;height:42px}}
@media(max-width:359px){.heritage footer.mh-footer>.footer-inner{grid-template-columns:1fr}.heritage .mh-work-full .mh-gallery-controls span{padding:0 3px}}

/* Full-bleed gallery: quiet, translucent controls on the photograph. */
.heritage .mh-work-full .mh-gallery{--gallery-height:clamp(320px,48vw,760px)}
.heritage .mh-work-full .mh-slide img{height:var(--gallery-height)}
.heritage .mh-work-full .mh-gallery-controls{position:absolute;inset:0 0 auto;height:var(--gallery-height);z-index:2;display:block;padding:0;background:transparent;border:0;pointer-events:none}
.heritage .mh-work-full .mh-gallery-controls button{pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:48px;height:60px;background:rgba(0,0,0,.14);border:0;border-radius:0;color:white;font-family:Arial,sans-serif;font-size:2.6rem;font-weight:400;line-height:1;text-shadow:0 1px 5px #0009;opacity:.85}
.heritage .mh-work-full .mh-gallery-controls button:hover,.heritage .mh-work-full .mh-gallery-controls button:focus-visible{background:rgba(0,0,0,.42);opacity:1}
.heritage .mh-work-full #gallery-prev{left:16px}.heritage .mh-work-full #gallery-next{right:16px}
.heritage .mh-work-full #gallery-count{position:absolute;right:var(--edge);top:20px;color:white;background:#252c3166;padding:5px 9px;font-size:.8rem;letter-spacing:.12em;line-height:1.4}
.heritage .mh-work-full #gallery-pause{top:auto;bottom:16px;right:var(--edge);transform:none;width:auto;height:auto;padding:8px 12px;font-size:.75rem;min-height:36px;line-height:1.2;letter-spacing:.04em}
.heritage footer.mh-footer>.mh-footer-bottom{max-width:none;width:100%;padding-inline:max(var(--edge),calc((100% - 1440px)/2 + var(--edge)));justify-content:flex-start}
.heritage footer.mh-footer .mh-footer-brand p{max-width:23ch;margin-bottom:0}
@media(max-width:768px){.heritage .mh-work-full .mh-gallery{--gallery-height:clamp(270px,70vw,520px)}.heritage .mh-work-full .mh-gallery-controls button{width:36px;height:48px;font-size:2.1rem}.heritage .mh-work-full #gallery-prev{left:6px}.heritage .mh-work-full #gallery-next{right:6px}.heritage .mh-work-full #gallery-count{top:12px}.heritage .mh-work-full #gallery-pause{bottom:10px}}

/* V4: editorial gallery title and edge-aligned footer. */
.heritage .mh-work-full .mh-gallery-heading{display:flex;justify-content:center;align-items:center;text-align:center;margin:0 0 26px}
.heritage .mh-work-full .mh-gallery-heading h2{display:flex;align-items:center;justify-content:center;gap:clamp(10px,2vw,28px);font-size:clamp(1.45rem,2.6vw,2.5rem);font-weight:500;line-height:1.2;letter-spacing:-.025em;margin:0}
.heritage .mh-work-full .mh-gallery-heading h2::before,.heritage .mh-work-full .mh-gallery-heading h2::after{content:'';display:block;flex:0 0 clamp(22px,4.2vw,66px);height:1px;background:var(--accent)}
.heritage footer.mh-footer>.footer-inner{max-width:none;margin:0;padding-inline:var(--edge)}
.heritage footer.mh-footer>.mh-footer-bottom{max-width:none;padding-inline:var(--edge);margin:0}
@media(min-width:1101px){.heritage footer.mh-footer>.footer-inner{grid-template-columns:minmax(190px,1.35fr) repeat(4,minmax(0,1fr))}.heritage footer.mh-footer>.footer-inner>nav:last-child{justify-self:end;width:max-content;max-width:100%}}
@media(max-width:600px){.heritage .mh-work-full .mh-gallery-heading{margin-bottom:20px}.heritage .mh-work-full .mh-gallery-heading h2{font-size:clamp(1.2rem,5.5vw,1.65rem);gap:10px}.heritage .mh-work-full .mh-gallery-heading h2::before,.heritage .mh-work-full .mh-gallery-heading h2::after{flex-basis:22px}}

/* V5: persistent navigation, in-flow sticky header and anchor clearance. */
html{scroll-padding-top:96px}
.heritage .top{position:sticky;top:0;z-index:50;width:100%;background:var(--paper);isolation:isolate}
.heritage .skip{position:fixed;z-index:100}
@media(max-width:1000px){html{scroll-padding-top:86px}.heritage .top .navlinks{max-height:calc(100dvh - 74px);overflow-y:auto;overscroll-behavior:contain}}
@media(max-width:600px){html{scroll-padding-top:80px}.heritage .top .navlinks{max-height:calc(100dvh - 68px)}}

/* V6: the gallery title replaces the workbench rule; compact footer navigation. */
.heritage-home #about{border-bottom:0;padding-bottom:22px}
.heritage .mh-work-full{padding-top:18px}
.heritage .mh-work-full .mh-gallery-heading{margin-bottom:24px}
.heritage footer.mh-footer>.footer-inner{padding-block:38px 30px;gap:22px 28px}
.heritage footer.mh-footer nav{gap:8px}
.heritage footer.mh-footer nav h2{margin-bottom:5px}
.heritage footer.mh-footer>.mh-footer-bottom{padding-block:15px 18px}
@media(min-width:1101px){.heritage footer.mh-footer>.footer-inner{grid-template-columns:minmax(190px,1fr) repeat(4,minmax(0,clamp(180px,13.5vw,250px)));gap:clamp(18px,1.5vw,28px)}.heritage footer.mh-footer>.footer-inner>nav:last-child{justify-self:end}}
@media(max-width:768px){.heritage-home #about{padding-bottom:14px}.heritage .mh-work-full{padding-top:14px}.heritage footer.mh-footer>.footer-inner{padding-block:26px;gap:24px 18px}}


/* V7 — Photo-first gallery captions; compact two-zone footer.
   Keep caption text and alt text accessible; no unsupported project claims. */
.heritage .mh-work-full{padding-bottom:0}
.heritage .mh-work-full .mh-slide{position:relative;isolation:isolate}
.heritage .mh-work-full .mh-slide figcaption{
  position:absolute;left:var(--edge);bottom:clamp(14px,2.6vw,38px);z-index:1;
  width:max-content;max-width:min(540px,calc(100% - 2 * var(--edge)));
  min-height:0;margin:0;padding:14px clamp(16px,1.5vw,24px);
  background:rgba(23,29,27,.66);color:#fff;
  display:flex;align-items:flex-start;flex-direction:column;gap:4px;
  pointer-events:none;
}
.heritage .mh-work-full .mh-slide figcaption strong{
  color:#fff;font:500 clamp(1.18rem,2vw,2rem)/1.14 Georgia,'Times New Roman',serif;
  letter-spacing:-.025em;
}
.heritage .mh-work-full .mh-slide figcaption span{
  color:#f2eee9;font-size:clamp(.73rem,.9vw,.87rem);line-height:1.4;
  letter-spacing:.015em;
}
.heritage .mh-work-full .mh-gallery-progress{display:none}
.heritage footer.mh-footer>.footer-inner{
  display:grid;grid-template-columns:minmax(190px,260px) minmax(0,1fr);
  column-gap:clamp(32px,4vw,80px);row-gap:22px;
  padding-block:34px 32px;align-items:start;
}
.heritage footer.mh-footer .mh-footer-brand{max-width:260px}
.heritage footer.mh-footer .mh-footer-links{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:clamp(16px,1.65vw,30px);width:100%;max-width:880px;
  justify-self:end;align-items:start;
}
.heritage footer.mh-footer .mh-footer-links nav{
  display:flex;flex-direction:column;align-items:flex-start;gap:10px;
  min-width:0;
}
.heritage footer.mh-footer .mh-footer-links nav h2{margin:1px 0 8px}
.heritage footer.mh-footer .mh-footer-links nav a{line-height:1.45}
@media(max-width:1099px){
  .heritage footer.mh-footer>.footer-inner{grid-template-columns:1fr;row-gap:28px}
  .heritage footer.mh-footer .mh-footer-links{
    justify-self:start;max-width:920px;
    grid-template-columns:repeat(4,minmax(0,1fr))
  }
}
@media(max-width:768px){
  .heritage footer.mh-footer>.footer-inner{padding-block:28px 30px;row-gap:26px}
  .heritage footer.mh-footer .mh-footer-links{
    grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 24px
  }
  .heritage .mh-work-full .mh-slide figcaption{
    padding:11px 13px;bottom:13px;
    max-width:min(77%,calc(100% - 2 * var(--edge)));
  }
  .heritage .mh-work-full .mh-slide figcaption strong{font-size:1.18rem}
}
@media(max-width:359px){
  .heritage footer.mh-footer .mh-footer-links{grid-template-columns:1fr}
  .heritage .mh-work-full .mh-slide figcaption{max-width:75%}
}
