.photo-hero{background-image:url('images/home-acre-hero.webp');background-position:center;background-size:cover}
.image-card{padding:0;overflow:hidden}
.image-card>img{width:100%;height:230px;object-fit:cover;display:block;transition:transform .45s ease}
.image-card:hover>img{transform:scale(1.025)}
.card-body{padding:26px 30px 30px;display:flex;flex:1;flex-direction:column}
.card-body h3{margin-top:0}
.page-product-photo{display:block;width:min(100%,1080px);height:clamp(280px,42vw,520px);object-fit:cover;margin:48px auto -135px;box-shadow:0 18px 50px rgba(22,47,37,.15)}
.page-hero:has(.page-product-photo)+.content{padding-top:175px}
@media(max-width:820px){.image-card>img{height:260px}.page-product-photo{margin-bottom:-100px}.page-hero:has(.page-product-photo)+.content{padding-top:140px}}
body:has(h1:first-of-type:nth-last-child(n)) .page-hero{position:relative;overflow:hidden;padding-right:44%;min-height:470px}
body:has(h1) .page-hero:after{content:'';position:absolute;right:0;top:0;width:40%;height:100%;background-position:center;background-size:cover}
body:has(h1:nth-child(n)) .page-hero:has(h1:nth-last-child(n)){isolation:isolate}
body:has(h1:nth-child(n)) .page-hero>*{position:relative;z-index:1}
body:has(h1:nth-child(n)) .page-hero:after{z-index:0}
body:has(h1:nth-child(n)) .page-hero:has(h1:nth-last-child(n)){background-color:#f5f0e5}
body:has(h1:nth-child(n)) .page-hero:has(h1:nth-last-child(n)):after{background-image:url('images/home-acre-hero.webp')}
body:has(h1:first-of-type) .page-hero:has(h1:nth-last-child(n)):after{background-image:url('images/home-acre-hero.webp')}
@media(max-width:820px){body:has(h1) .page-hero{padding-right:7%;padding-bottom:300px}body:has(h1) .page-hero:after{top:auto;bottom:0;width:100%;height:260px}}

.groundspace-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.groundspace-feature img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 820px) {
  .groundspace-feature { grid-template-columns: 1fr; }
}

.contractor-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin: 0 5% clamp(2rem, 5vw, 4rem);
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: #efe8d7;
  border: 1px solid #ddd1ba;
}

.contractor-callout div { flex: 1 1 24rem; }
.contractor-callout h2, .contractor-callout p { margin: 0; }
.contractor-callout p { margin-top: .5rem; }

.material-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding: clamp(2rem, 5vw, 5rem) 7%;
  background: var(--paper);
}

.material-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 820px) {
  .material-hero { grid-template-columns: 1fr; }
}

.compost-use-photo { margin: 2rem 0; }
.compost-use-photo img {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}
.compost-use-photo figcaption { margin-top: .5rem; font-size: .9rem; }

.structure-project { margin-block: 2rem 3rem; }
.structure-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
  align-items: start;
}
.structure-photos a { display: block; }
.structure-photos img {
  display: block;
  width: 100%;
  height: auto;
}

.structure-photos a:only-child { max-width: 650px; }
