/* Architectural photography: preserve the building, colour and image proportions. */
.case-detail-hero .case-hero-image {
  height: auto;
  min-height: 0;
  overflow: visible;
  background: #102339;
}
.case-detail-hero .case-hero-image::after { display: none; }
.case-detail-hero .case-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 720px;
  object-fit: contain;
}
.case-detail-hero .case-hero-image figcaption,
.case-photo-credit {
  position: static;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem 1.5rem;
  margin: 0;
  padding: .8rem 1rem;
  border: 0;
  background: #102339;
  backdrop-filter: none;
  color: #dbe5ed;
  font-size: .875rem;
  line-height: 1.6;
}
.case-photo-credit a,
.case-detail-hero .case-hero-image figcaption a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .18em;
}
.case-photo-credit small { font-size: inherit; }
.case-detail-hero .case-hero-image figcaption span { font-size: inherit; color: inherit; text-align: start; }
.case-card-photo { display: flex; flex-direction: column; min-width: 0; background: #102339; }
.case-index-card > .case-card-photo { padding: 0; align-items: stretch; justify-content: flex-start; }
.case-index-card:nth-child(even) > .case-card-photo { order: 2; }
.case-card-photo .case-card-image { min-height: 0; flex: 1; display: grid; place-items: center; }
.case-card-photo .case-card-image img { display: block; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.case-card-photo .case-card-image::after { display: none; }
.case-index-card .case-card-photo .case-card-image { order: 0; }
.case-index-card:hover .case-card-photo img { transform: none; opacity: 1; }
.case-gallery .case-location-photo img { height: auto; aspect-ratio: auto; object-fit: contain; }
.case-photo-credit a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.case-photo-credit-compact {
  padding: 0;
  background: transparent;
  color: #52647a;
  font-size: .75rem;
  gap: .1rem .7rem;
  justify-content: flex-start;
}
.home-project-card .case-photo-credit-compact { font-weight: 400; }
.home-project-card > .case-location-image,
.sh-evidence > .case-location-image {
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  align-self: center;
  background: #102339;
}
.sh-evidence > .case-location-image { max-height: none; }
.sh-evidence .case-photo-credit-compact { color: inherit; }
@media (max-width: 980px) {
  .case-index-card:nth-child(even) > .case-card-photo { order: 0; }
}
@media (max-width: 640px) {
  .case-card-photo .case-card-image { height: auto; min-height: 0; }
  .case-photo-credit { gap: .3rem; }
}
