/* Photo gallery and homepage variants of shared work/heading components.
   Hero, About, Company and News have one definition in site.css. */
.hero-gallery { min-width: 0; margin: 0; }
.hero-photos { aspect-ratio: 1.42; overflow: hidden; background: var(--soft); }
.hero-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-photo[hidden] { display: none; }
.hero-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.hero-caption {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}
.hero-caption a { text-decoration: none; }
.hero-caption a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-caption a span { display: block; font-weight: 600; letter-spacing: .1em; }
.hero-photo-controls { display: flex; gap: 10px; flex-shrink: 0; }
.hero-photo-controls[hidden] { display: none; }
.hero-photo-controls button {
  padding: 3px 2px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.hero-photo-controls button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.home .work { padding: 76px 0 85px; }
.home .section-heading { margin-bottom: 39px; }
.home .section-heading h2 { font-size: 34px; }
.home .work-row { grid-template-columns: 32px 1fr 1.15fr 20px; gap: 25px; min-height: 124px; padding: 29px 0; }
.home a.work-row:hover { padding-inline: 10px; }
.home .work-desc { font-size: 13px; }

@media (max-width: 820px) {
  .hero-photos { aspect-ratio: 2.1; }
  .home .work-row { grid-template-columns: 22px 1fr 1.15fr 16px; gap: 16px; }
}

@media (max-width: 620px) {
  .hero-photos { aspect-ratio: 1.65; }
  .home .work { padding: 44px 0 50px; }
  .home .section-heading h2 { font-size: 30px; }
  .home .work-row { grid-template-columns: 22px 1fr 18px; gap: 13px; padding: 25px 0; }
  .home .work-desc { grid-column: 2; grid-row: 2; margin-top: 0; }
  .home .work-arrow { grid-column: 3; grid-row: 1; }
  .home .work-name strong { font-size: 20px; }
}

@media (pointer: coarse) {
  .hero-photo-controls button { min-width: 44px; min-height: 44px; }
}
