/* Editorial photography for the garage and car dossiers. */
.charger-hero.photo-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(24rem, 43vw, 39rem);
  overflow: hidden;
  background: #111519;
}
.photo-hero .charger-hero__image {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 25%;
  margin: 0;
  border: 0;
}
.photo-hero .charger-hero__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 57% center;
}
.photo-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #101418 7%, #101418ee 26%, #10141866 53%, transparent 83%);
}
.photo-hero .charger-hero__inner { padding-block: clamp(2rem, 6vw, 4.5rem); }
.photo-hero .charger-hero__copy { max-width: 27rem; }
.photo-hero h1 {
  font-size: clamp(2.45rem, 5.7vw, 5.2rem);
  line-height: 1;
  margin: 0 0 1rem;
}
.photo-hero .lede { color: #e4e7ea; }
.photo-hero .charger-hero__link {
  display: inline-block; padding: .66rem 1rem; background: #e1e6de;
  border-radius: 3px; color: #111519; font-weight: 750; text-decoration: none;
}
main .garage-cards .garage-photo img,
main .cards .garage-photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9 !important;
  object-fit: contain; background: #111519;
}
main .cards .garage-photo::after, main .cards .garage-photo::before { content: none; }
main .cards .card:has(.garage-photo) { --accent: #d8e0d7 !important; }
main .cards .card:has(.garage-photo):hover { transform: none; }
main .dossier .photo-cover {
  background: #111519;
}
main .dossier .photo-cover img {
  width: 100%; height: auto; max-height: 44rem;
  aspect-ratio: auto !important; object-fit: contain !important;
}
main .dossier .photo-cover figcaption {
  display: block; text-transform: none; letter-spacing: normal;
  padding: .75rem 1rem; font: inherit; font-size: .875rem;
}
.photo-credit { margin: 1.2rem 0 1.65rem; color: var(--sub, #bbc2ca); font-size: .9rem; }
.photo-credit summary { cursor: pointer; }
.photo-credit ul { margin-block: .75rem; }
@media (max-width: 640px) {
  .charger-hero.photo-hero { grid-template-rows: auto auto; min-height: 0; }
  .photo-hero .charger-hero__image { position: relative; z-index: 0; inset: auto; height: auto; }
  .photo-hero .charger-hero__image img { height: auto; aspect-ratio: 16 / 9; object-fit: contain; object-position: center; }
  .photo-hero::after { content: none; }
  .photo-hero .charger-hero__inner { padding-block: 1.65rem 2.35rem; }
}
