/* Shared photo treatment for DBM pages that use the simple hero shell. */
.dbm-hero.has-page-hero-picture {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, .94fr);
  gap: clamp(30px, 6vw, 78px);
  align-items: center;
}
.dbm-hero.has-page-hero-picture > :not(.dbm-page-hero-picture) { grid-column: 1; }
.dbm-hero.has-page-hero-picture .dbm-page-hero-picture { grid-column: 2; grid-row: 1 / span 8; align-self: center; }
.dbm-hero.has-page-hero-picture h1 { max-width: 14ch; }
.dbm-page-hero-picture {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(206, 222, 211, .22);
  border-radius: 2px;
  background: #101b16;
  box-shadow: 14px 16px 0 rgba(0, 0, 0, .2);
}
.dbm-auto-hero {
  width: min(100%, 760px);
  margin: 26px auto 34px;
  overflow: hidden;
  border: 1px solid rgba(206, 222, 211, .22);
  border-radius: 2px;
  background: #101b16;
  box-shadow: 12px 14px 0 rgba(0, 0, 0, .16);
}
.dbm-toolbox-page .dbm-hero::before,
.dbm-toolbox-page .dbm-hero::after { content: none !important; display: none !important; background: none !important; }
.dbm-auto-hero img { display:block; width:100%; aspect-ratio: 16 / 7; object-fit:cover; filter:saturate(.82) contrast(1.03); }
.dbm-auto-hero figcaption { padding: 9px 12px; color: #b9c9c0; font-size: .78rem; }
.dbm-page-hero-picture img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(.84) contrast(1.03);
}
.hero.has-page-hero-picture .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, .94fr);
  gap: clamp(30px, 6vw, 78px);
  align-items: center;
}
.hero.has-page-hero-picture .wrap > :not(.dbm-page-hero-picture) { grid-column: 1; }
.hero.has-page-hero-picture .wrap > .dbm-page-hero-picture { grid-column: 2; grid-row: 1 / span 8; align-self: center; }
.hero.has-page-hero-picture .dbm-page-hero-picture { margin: 0; }
.hero.has-page-hero-picture:not(:has(.wrap)) {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, .94fr);
  gap: clamp(30px, 6vw, 78px);
  align-items: center;
}
.hero.has-page-hero-picture:not(:has(.wrap)) > :not(.dbm-page-hero-picture) { grid-column: 1; }
.hero.has-page-hero-picture:not(:has(.wrap)) > .dbm-page-hero-picture { grid-column: 2; grid-row: 1 / span 8; align-self: center; }
@media (max-width: 860px) {
  .dbm-hero.has-page-hero-picture,
  .hero.has-page-hero-picture .wrap,
  .hero.has-page-hero-picture:not(:has(.wrap)) { grid-template-columns: 1fr; gap: 30px; }
  .dbm-hero.has-page-hero-picture > :not(.dbm-page-hero-picture),
  .dbm-hero.has-page-hero-picture .dbm-page-hero-picture,
  .hero.has-page-hero-picture .dbm-page-hero-picture,
  .hero.has-page-hero-picture:not(:has(.wrap)) > :not(.dbm-page-hero-picture),
  .hero.has-page-hero-picture:not(:has(.wrap)) > .dbm-page-hero-picture { grid-column: 1; grid-row: auto; }
}
@media (max-width: 620px) {
  .dbm-page-hero-picture { box-shadow: 8px 10px 0 rgba(0, 0, 0, .18); }
  .dbm-page-hero-picture img { aspect-ratio: 16 / 11; }
}
@media (prefers-reduced-motion: reduce) {
  .dbm-page-hero-picture img { filter: saturate(.84); }
}
