.archive-photo {
  margin: 24px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

@media(min-width:901px) {
  .detail-hero--completed {
    display:grid;
    grid-template-columns:minmax(0,.95fr) minmax(520px,1.05fr);
    min-height:0;
  }
  .detail-hero--completed > .zniwna-cover-photo {
    grid-column:2;
    grid-row:1;
    width:100%;
    height:clamp(420px,56vh,520px);
    min-height:0;
    aspect-ratio:auto;
    object-fit:cover;
  }
  .detail-hero--completed > .detail-hero-content {
    grid-column:1;
    grid-row:1;
    padding:48px 40px 48px max(32px,calc((100vw - var(--container))/2));
  }
  .detail-hero--completed .detail-hero-content > .container {
    display:block;
    width:auto;
    max-width:570px;
    margin:0;
  }
  .detail-hero--completed .facts {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px;
    margin-top:24px;
  }
}

@media(max-width:900px) {
  .detail-hero--completed { display:grid; }
  .detail-hero--completed > .detail-hero-content { grid-row:1; }
  .detail-hero--completed > .zniwna-cover-photo {
    grid-row:2;
    height:auto;
    min-height:0;
    aspect-ratio:16 / 9;
  }
}
.archive-photo > a {
  position: relative;
  display: block;
  cursor: zoom-in;
}
.archive-photo img {
  display: block;
  width: 100%;
  height: auto;
}
.archive-photo-zoom {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 8px;
  background: rgba(39,51,97,.86);
  color: #fff;
  font-size: 20px;
}
.archive-photo > a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -4px;
}
.archive-photo figcaption {
  margin: 0;
  padding: 17px 22px;
  border-left: 3px solid var(--accent);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}
@media (max-width: 640px) {
  .archive-photo figcaption { padding: 14px 16px; font-size: 13px; }
  .archive-photo-zoom { right: 10px; bottom: 10px; }
}

/* A wider view of the finished house keeps roof, entrance and lawn visible. */
.project-grid--completed .project-card > .zniwna-cover-photo {
  object-position: center 65%;
}
.project-grid--completed .project-card > .project-card-content {
  background: var(--white);
}
/* Let the mobile image keep its own height instead of inheriting the card height. */
@media (max-width: 900px) {
  .project-grid--completed .project-card {
    display: flex;
    flex-direction: column;
  }
  .project-grid--completed .project-card > .zniwna-cover-photo {
    flex: none;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 4/3;
    object-fit: contain;
    border-bottom: 1px solid var(--line);
  }
  .project-grid--completed .project-card > .project-card-content {
    flex: none;
    width: 100%;
  }
}
.detail-hero--completed > .zniwna-cover-photo {
  aspect-ratio: 2/1;
  object-position: center 60%;
}
@media (max-width: 600px) {
  .detail-hero--completed > .zniwna-cover-photo {
    aspect-ratio: 16/9;
    object-position: center 65%;
  }
}
@media (max-width: 700px) {
  .detail-hero--completed .detail-hero-content > .container {
    display: block;
    width: calc(100% - 40px);
  }

  .detail-hero--completed h1,
  .detail-hero--completed .detail-hero-content > .container > p,
  .detail-hero--completed .detail-actions,
  .detail-hero--completed .facts {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .detail-hero--completed h1 {
    margin: 0 0 20px;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
    text-wrap: wrap;
  }

  .detail-hero--completed .detail-hero-content > .container > p {
    margin-bottom: 0;
  }
}
