.hero-media {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--stone);
}
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 49%;
}
.project-hero h1 {
  margin: 0;
  font: 500 clamp(2.2rem,4.5vw,4.25rem)/1.04 var(--serif);
  letter-spacing: -.045em;
  text-wrap: balance;
}
.project-area {
  display: grid;
  align-content: center;
  gap: .45rem;
  padding: clamp(1.25rem,3.5vw,3.45rem);
  color: #fffbf3;
  background: var(--oxide-dark);
}
.project-area strong {
  font: 500 clamp(2.65rem,6vw,6.4rem)/.95 var(--serif);
  letter-spacing: -.055em;
  white-space: nowrap;
}
.project-area span { color: #ffebe1; }
.project-card .project-area { padding: 1.4rem; min-height: 11rem; aspect-ratio: 1.48; }
.project-card .project-area strong { font-size: clamp(2.75rem,4.8vw,4.8rem); }
.project-card .project-card-copy { padding: 1rem 1.08rem 1.2rem; }
.project-card--area:hover .project-area { background: var(--oxide); }
.project-hero { padding-block: clamp(2.35rem,5.4vw,5rem); background: var(--linen); border-block: 1px solid var(--line); }
.project-hero-layout { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(13rem,.85fr); align-items: center; gap: clamp(1.2rem,4vw,3.9rem); }
.project-hero h1 + p { max-width: 61ch; margin-bottom: 0; font-size: 1.16rem; }
.project-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0; border-block: 1px solid var(--line); }
.project-facts > div { padding: .85rem 1.15rem; border-bottom: 1px solid var(--line); }
.project-facts dt { color: var(--muted); font-size: .94rem; }
.project-facts dd { margin: .2rem 0 0; font-weight: 650; }

.photo-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(.75rem,2.5vw,2rem); max-width: 62rem; }
.photo-pair figure > div { position: relative; }
.photo-pair img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.photo-pair span { position: absolute; top: .7rem; left: .7rem; padding: .35rem .65rem; color: var(--paper); background: #352822; font-weight: 650; }
.photo-pair figcaption { margin-top: .55rem; color: var(--text); }

.photo-filters { display: flex; flex-wrap: wrap; gap: .65rem; margin-block: 1rem .75rem; }
.photo-filters[hidden], .gallery-edition [hidden] { display: none; }
.photo-filters button {
  min-height: 2.7rem;
  padding: .45rem .85rem;
  border: 1px solid var(--oxide);
  color: var(--oxide-dark);
  background: var(--paper);
  cursor: pointer;
}
.photo-filters button:is(:hover,[aria-pressed="true"]) { color: #fff; background: var(--oxide-dark); }
.photo-count { margin-top: 0; color: var(--muted); }
.gallery-edition { grid-template-columns: repeat(3,minmax(0,1fr)); }
.gallery-edition .info-photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.gallery-edition .info-photo:hover img { transform: scale(1.03); }
.gallery-edition #chateau-neuville-exterieur img { object-position: 50% 40%; }
.gallery-edition figcaption h3 { margin: .4rem 0; font-size: 1.3rem; line-height: 1.12; }
.gallery-edition figcaption p:not(.eyebrow) { margin: .45rem 0; }
.gallery-edition figcaption a { font-size: .9rem; }
.geo-brief { max-width: 76ch; }
.geo-brief > p { margin: .55rem 0; }

@media (max-width: 53rem) {
  .gallery-edition { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 48rem) {
  .hero-media { aspect-ratio: 1.43; margin: 0 var(--gutter) var(--gutter); }
}
@media (max-width: 42rem) {
  .project-hero-layout { grid-template-columns: minmax(0,1fr); }
  .gallery-edition { grid-template-columns: minmax(0,1fr); }
  .photo-pair span { top: .38rem; left: .38rem; padding: .24rem .4rem; }
  .photo-pair figcaption { font-size: .9rem; }
  .project-facts { grid-template-columns: minmax(0,1fr); }
}
