.completed-project {
  display: flex;
  flex: 1;
  flex-direction: column;
  border-radius: 6px;
  overflow: hidden;
  background: #edf2e8;
}

.completed-project figure { margin: 0; position: relative; }
.completed-project figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  object-position: center 62%;
}

.completed-project figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 4px 9px;
  border-radius: 3px;
  background: #f6f8f0f5;
  color: #284634;
  font-size: .81rem;
}

.completed-project-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: start;
  padding: clamp(16px, 2.4vw, 30px);
}

.completed-project-copy h3 { font-size: clamp(22px, 2.3vw, 29px); margin: 0 0 6px; }
.completed-project-credit { color: #405e49; margin: 0 0 16px; }
.completed-project-copy h4 { margin: 0 0 5px; font-size: 1rem; }
.completed-project-copy ul { margin: 0 0 10px; padding-inline-start: 1.25em; }
.completed-project-copy .text-link { margin-top: auto; }

.project-profile-intro {
  background: #edf2e8;
  padding-block: clamp(30px, 5vw, 62px);
}

.project-profile-intro h1 {
  max-width: 24ch;
  font-size: clamp(32px, 4.5vw, 58px);
  line-height: 1.12;
  text-wrap: balance;
  margin: 10px 0 14px;
}

.project-profile-intro p, .project-profile .garden-intro p { max-width: 65ch; }
.project-profile-intro a, .project-profile-section a {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.project-profile-section {
  padding-block: clamp(24px, 4vw, 48px);
  border-top: 1px solid #dce4d6;
}

.project-profile-section h2 { font-size: clamp(25px, 3vw, 37px); margin-bottom: 15px; }
.project-profile-section h3 { font-size: clamp(19px, 2vw, 23px); margin-bottom: 8px; }
.project-profile-section p, .project-profile-section ul { max-width: 70ch; }
.project-profile-section li + li { margin-top: 7px; }

.project-profile-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 12px clamp(16px, 3vw, 28px);
  margin: 0;
}

.project-profile-details > div {
  padding-block: 12px;
  border-top: 2px solid #a6b69a;
}

.project-profile-details dt { font-size: 1.08rem; font-weight: 700; }
.project-profile-details dd { margin: 4px 0 0; color: #405e49; }

.project-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.24fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  background: #e9eee1;
}

.project-feature h1, .garden-intro h1 {
  font-size: clamp(32px, 4.5vw, 60px);
  line-height: 1.08;
  margin: 12px 0 20px;
}

.project-feature .button { margin-top: 12px; }
.project-feature figure, .garden-main-photo, .garden-gallery figure { margin: 0; }
.project-feature img, .garden-main-photo img, .garden-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.project-feature figcaption, .garden-main-photo figcaption, .garden-gallery figcaption {
  margin-top: 8px;
  color: #445a49;
  font-size: .88rem;
  line-height: 1.5;
}

.garden-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.24fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  background: #e9eee1;
}

.garden-intro .garden-back {
  display: inline-block;
  color: inherit;
  margin-bottom: 24px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.garden-photos h2 { margin-bottom: 24px; }
.garden-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 32px);
}

.garden-gallery a, .garden-main-photo a { display: block; }
.garden-gallery a:focus-visible, .garden-main-photo a:focus-visible {
  outline: 2px solid #325a3e;
  outline-offset: 4px;
}

.garden-consult {
  margin-top: clamp(28px, 5vw, 64px);
  padding-top: clamp(20px, 3vw, 36px);
  border-top: 1px solid #b8c6ad;
}

.garden-consult a { display: inline-block; }
.garden-contact { margin: 1rem 0 0; }
.garden-contact a { text-decoration: underline; text-underline-offset: .2em; }

@media (max-width: 880px) {
  .project-feature, .garden-intro { grid-template-columns: 1fr; }
  .garden-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
  .garden-gallery { grid-template-columns: 1fr; }
}
