/* Shared responsive contract: cover for thumbnails, contain for original media. */
html { min-width: 0; -webkit-text-size-adjust: 100%; }
body { min-width: 0; }
img, video { max-width: 100%; object-fit: contain; }
button, input, select, textarea { max-width: 100%; }
:where(main, section, article, form, dialog, .work-card, .collection-card) { min-width: 0; }
:where(h1,h2,h3,p,label,button,a) { overflow-wrap: anywhere; }
video.media-view, img.media-view { object-fit: contain; width: 100%; height: auto; max-height: 80vh; }
.work-image, .case-card-media { aspect-ratio: 3 / 4; height: auto; }
.work-image img, .case-card-media img { width: 100%; height: 100%; object-fit: cover; }
.collection-image { aspect-ratio: 1; height: auto; }
.collection-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide-note h2, .family-heading h3, .secondary-service h3,
.sketch-home .reference-story h2 { white-space: normal; }
.hero-slide { height: auto; min-height: 388px; }
.hero-slide-photo { min-height: 280px; }
.hero-slide-note { gap: 12px; }
.hero-detail-photo { flex-shrink: 0; }
@media (max-width: 760px) {
  .header { flex-wrap: wrap; height: auto; min-height: 74px; }
  .header .brand { min-width: 0; }
  .header .header-account { padding-left: 0; }
  .section-heading { flex-wrap: wrap; }
  .modal, dialog { max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
  .hero-slide { min-height: 0; }
  .hero-slide-photo { min-height: 0; aspect-ratio: 3 / 4; }
}
@media (max-width: 360px) {
  .header { gap: 6px; padding-inline: 12px; }
  .header .brand-word { font-size: 20px; }
  .header .header-account { font-size: 11px; }
  .header .language-switch select { max-width: 72px; }
  body[data-page="home"] .editorial-hero-copy { grid-template-columns: minmax(0,1fr); }
  body[data-page="home"] .editorial-english { grid-column: 1; grid-row: auto; }
}
