#hoeve.heritage {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 540px) minmax(0, 1fr);
  column-gap: clamp(28px, 4vw, 64px);
  max-width: none;
  min-height: 780px;
  padding: 70px max(6%, calc((100vw - 1700px) / 2)) 85px;
  overflow: hidden;
  background: #f3eee5;
}

#hoeve.heritage > .heritage-visual {
  position: relative;
  z-index: 0;
  inset: auto;
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  width: 100%;
  max-width: none;
  transform: none;
}

.heritage-photo {
  width: 100%;
  aspect-ratio: 1534 / 1025;
  background: url('assets/huis-ten-bosch-bewerkt.png') center / contain no-repeat;
  -webkit-mask-image: radial-gradient(ellipse closest-side, #000 53%, rgba(0, 0, 0, .91) 66%, rgba(0, 0, 0, .6) 80%, rgba(0, 0, 0, .25) 92%, transparent 100%);
  mask-image: radial-gradient(ellipse closest-side, #000 53%, rgba(0, 0, 0, .91) 66%, rgba(0, 0, 0, .6) 80%, rgba(0, 0, 0, .25) 92%, transparent 100%);
  filter: none;
}

#hoeve.heritage .heritage-credit {
  position: absolute;
  right: max(6%, calc((100vw - 1700px) / 2));
  bottom: 18px;
  z-index: 2;
  margin: 0;
  text-align: right;
  color: #62675e;
  font: 11px/1.5 'Manrope', Arial, sans-serif;
}

#hoeve.heritage > .heritage-visual { z-index: 1; }

@media (hover: hover) and (pointer: fine) and (min-width: 651px) {
  #hoeve.heritage > .heritage-visual {
    width: min(55%, 394px);
    justify-self: center;
    transition: width 1400ms cubic-bezier(.45, 0, .25, 1);
  }

  #hoeve.heritage > .heritage-visual:hover,
  #hoeve.heritage > .heritage-visual:focus-visible {
    width: 100%;
  }
}

#hoeve.heritage::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(0deg, #f3eee5 0%, #f3eee5c9 5%, #f3eee500 24%, #f3eee500 82%, #f3eee580 96%, #f3eee5 100%),
    linear-gradient(90deg, #f3eee5 0%, #f3eee5 40%, #f3eee5f5 44%, #f3eee5c9 48%, #f3eee55c 55%, #f3eee500 64%),
    linear-gradient(270deg, #f3eee599 0%, #f3eee500 10%);
}

#hoeve.heritage > div:not(.heritage-visual) {
  position: relative;
  z-index: 2;
  grid-column: 1;
  max-width: 100%;
}

#hoeve.heritage .eyebrow {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 12px;
  letter-spacing: .25em;
  margin-bottom: 58px;
}

#hoeve.heritage .eyebrow::after {
  content: '';
  width: 100px;
  height: 1px;
  background: currentColor;
  opacity: .45;
}

#hoeve.heritage h2 {
  font-size: clamp(54px, 5.5vw, 88px);
  line-height: 1.02;
  letter-spacing: -.025em;
  margin-bottom: 58px;
}

#hoeve.heritage .intro-copy {
  max-width: 100%;
  padding-left: 30px;
  border-left: 1px solid #8a9285;
}

#hoeve.heritage .intro-copy h3 {
  max-width: 440px;
  font-size: 32px;
  line-height: 1.1;
  margin: 0 0 26px;
}

#hoeve.heritage .intro-copy p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: #354035;
  font-size: 20px;
  line-height: 1.45;
  margin: 0 0 18px;
}

@media (max-width: 1000px) {
  #hoeve.heritage { min-height: 0; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  #hoeve.heritage > .heritage-visual { left: auto; }
  #hoeve.heritage::before {
    background:
      linear-gradient(0deg, #f3eee5, #f3eee500 25%, #f3eee500 80%, #f3eee5),
      linear-gradient(90deg, #f3eee5 43%, #f3eee5f5 49%, #f3eee5c9 55%, #f3eee500 76%);
  }
  #hoeve.heritage > div:not(.heritage-visual) { max-width: 100%; }
  #hoeve.heritage .intro-copy { max-width: 100%; }
  #hoeve.heritage h2 { font-size: clamp(40px, 5.5vw, 55px); }
}

@media (hover: hover) and (pointer: fine) and (min-width: 651px) and (max-width: 1000px) {
  #hoeve.heritage > .heritage-visual { width: min(55%, 394px); }
  #hoeve.heritage > .heritage-visual:hover,
  #hoeve.heritage > .heritage-visual:focus-visible { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  #hoeve.heritage > .heritage-visual { transition: none; }
}

@media (max-width: 650px) {
  #hoeve.heritage { display: block; padding: 46px 7% 0; }
  #hoeve.heritage::before { display: none; }
  #hoeve.heritage > div:not(.heritage-visual),
  #hoeve.heritage .intro-copy { max-width: 100%; }
  #hoeve.heritage > .heritage-visual {
    position: relative;
    inset: auto;
    z-index: 0;
    transform: none;
    width: calc(100% + 14vw);
    margin: 24px -7vw 0;
  }
  #hoeve.heritage .heritage-photo {
    background-position: center;
    -webkit-mask-image: radial-gradient(ellipse closest-side, #000 53%, rgba(0, 0, 0, .91) 66%, rgba(0, 0, 0, .6) 80%, rgba(0, 0, 0, .25) 92%, transparent 100%);
    mask-image: radial-gradient(ellipse closest-side, #000 53%, rgba(0, 0, 0, .91) 66%, rgba(0, 0, 0, .6) 80%, rgba(0, 0, 0, .25) 92%, transparent 100%);
  }
  #hoeve.heritage .eyebrow { font-size: 9px; gap: 14px; margin-bottom: 32px; }
  #hoeve.heritage .eyebrow::after { flex: 1; width: auto; }
  #hoeve.heritage h2 { font-size: clamp(40px, 9vw, 58px); margin-bottom: 32px; }
  #hoeve.heritage .intro-copy { padding-left: 18px; }
  #hoeve.heritage .intro-copy h3 { font-size: 28px; }
  #hoeve.heritage .heritage-credit {
    position: relative;
    right: auto;
    bottom: auto;
    padding: 8px 0 18px;
    font-size: 10px;
  }
}

/* Uitlijning met de overige paginasecties. */
#hoeve.heritage {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px 6%;
  max-width: 1600px;
  min-height: 0;
  margin-inline: auto;
  padding: 85px 9% 65px;
  background: var(--paper);
}
#hoeve.heritage::before { display: none; }
#hoeve.heritage > div:first-child { grid-column: 1 / -1; }
#hoeve.heritage .eyebrow {
  font-size: 10px; letter-spacing: 2.7px; margin: 0 0 20px;
}
#hoeve.heritage .eyebrow::after { display: none; }
#hoeve.heritage h2 {
  font-size: clamp(42px, 4.3vw, 67px);
  line-height: 1.04; letter-spacing: -1.3px; margin: 0;
}
#hoeve.heritage .intro-copy { grid-column: 1; padding: 0; border: 0; }
#hoeve.heritage .intro-copy h3 {
  max-width: 100%; font-size: 29px; line-height: 1.15; margin: 0 0 20px;
}
#hoeve.heritage .intro-copy p {
  font: 15px/1.8 'Manrope', Arial, sans-serif;
  color: var(--muted); margin: 0 0 18px;
}
#hoeve.heritage > .heritage-visual {
  grid-column: 2; grid-row: 2; align-self: center;
}
#hoeve.heritage .heritage-credit {
  position: static; grid-column: 2; margin: 0; padding: 0; text-align: right;
}
@media (max-width: 1000px) {
  #hoeve.heritage { padding: 65px 6% 50px; gap: 28px 5%; }
}
@media (max-width: 760px) {
  #hoeve.heritage {
    display: grid; grid-template-columns: minmax(0, 1fr);
    padding: 60px 7% 45px; gap: 26px;
  }
  #hoeve.heritage > .heritage-visual {
    grid-column: 1; grid-row: auto; width: 100%; margin: 0;
  }
  #hoeve.heritage .heritage-credit { grid-column: 1; }
  #hoeve.heritage h2 { font-size: 47px; }
}

/* Static archival photograph, aligned with the end of the story. */
#hoeve.heritage>.heritage-visual,#hoeve.heritage>.heritage-visual:hover,#hoeve.heritage>.heritage-visual:focus-visible{width:100%;max-width:none;align-self:end;justify-self:stretch;transform:none;transition:none;cursor:default}
#hoeve.heritage .heritage-photo{opacity:.7;transform:none;transition:none}
#hoeve.heritage .intro-copy p:last-child{margin-bottom:0}
@media(min-width:761px){#hoeve.heritage>.heritage-visual{transform-origin:right bottom}}

#hoeve.heritage .heritage-photo{-webkit-mask-image:radial-gradient(ellipse closest-side,#000 60%,rgba(0,0,0,.91) 72%,rgba(0,0,0,.6) 84%,rgba(0,0,0,.25) 95%,transparent 100%);mask-image:radial-gradient(ellipse closest-side,#000 60%,rgba(0,0,0,.91) 72%,rgba(0,0,0,.6) 84%,rgba(0,0,0,.25) 95%,transparent 100%)}
@media(min-width:761px){#hoeve.heritage>.heritage-visual{top:-24px}}

/* Rectangular archival image with softly feathered edges. */
#hoeve.heritage .heritage-photo{-webkit-mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent),linear-gradient(0deg,transparent,#000 11%,#000 89%,transparent);-webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent),linear-gradient(0deg,transparent,#000 11%,#000 89%,transparent);mask-composite:intersect}

@media(min-width:761px){
 #hoeve.heritage>.heritage-visual{top:0;height:0;align-self:end}
 #hoeve.heritage .heritage-photo{position:absolute;bottom:0;left:0;width:100%}
}
