.hw-gallery {
  background: #fff;
  color: #182a33;
  padding-block: clamp(48px, 5.5vw, 92px);
  font-family: "Factory Sans", Arial, sans-serif;
  scroll-margin-top: 5rem;
}
.hw-inner {
  width: min(90%, 1450px);
  margin-inline: auto;
}
.hw-heading, .hw-links, .hw-caption, .hw-controls {
  display: flex;
  align-items: center;
}
.hw-heading {
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(24px, 2.5vw, 40px);
}
.hw-heading h2 {
  font: 550 clamp(34px, 3.7vw, 62px)/1.05 "Factory Sans", Arial, sans-serif;
  letter-spacing: -.04em;
  margin: 0;
}
.hw-gallery a { color: inherit; text-decoration: none; }
.hw-links { flex-wrap: wrap; gap: 6px clamp(15px, 2vw, 32px); }
.hw-gallery .hw-inspect {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  padding-block: .42em;
  font-size: clamp(13px, 1.04vw, 16px);
  font-weight: 550;
  line-height: 1.3;
  border-bottom: 1px solid #a8b3b8;
}
.hw-gallery .hw-inspect:hover { color: #075583; border-color: currentColor; }
.hw-track {
  display: grid;
  grid-template-columns: minmax(0, 2.22fr) minmax(0, 1fr);
  gap: clamp(14px, 1.4vw, 24px) clamp(20px, 2.5vw, 40px);
  align-items: start;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hw-photo { min-width: 0; }
.hw-photo:first-child { grid-row: span 2; }
.hw-photo a { display: block; }
.hw-image { display: block; background: #e9ecec; }
.hw-image img {
  display: block;
  width: 100%;
  height: auto;
}
.hw-caption {
  justify-content: space-between;
  gap: 1rem;
  padding-top: 10px;
}
.hw-caption > div { display:flex; align-items:baseline; flex-wrap:wrap; gap:2px 12px; }
.hw-model {
  color: #54656d;
  font: 550 clamp(12px, .9vw, 15px)/1.4 "Factory Sans", Arial, sans-serif;
  letter-spacing: .02em;
}
.hw-caption h3 {
  margin: 0;
  color: #172a34;
  font: 550 clamp(17px, 1.55vw, 25px)/1.18 "Factory Sans", Arial, sans-serif;
  letter-spacing: -.025em;
}
.hw-photo:first-child .hw-caption { padding-top: clamp(13px, 1.2vw, 20px); }
.hw-photo:first-child h3 { font-size: clamp(28px, 2.65vw, 44px); }
.hw-arrow { flex: none; font: 400 20px/1.2 Arial, sans-serif; color: #304e61; }
.hw-photo a:is(:hover, :focus-visible) h3 { text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.hw-gallery a:focus-visible, .hw-gallery button:focus-visible { outline: 2px solid #0a658d; outline-offset: 3px; }
.hw-controls { justify-content: flex-end; gap: 6px; padding-top: 10px; }
.hw-controls[hidden] { display: none; }
.hw-position { font-size: 13px; font-variant-numeric: tabular-nums; margin-right: 10px; color: #58636d; }
.hw-controls button {
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  font: 400 21px/1 Arial, sans-serif;
  background: #fff;
  color: #22313a;
  border: 1px solid #a9b6bb;
  border-radius: 0;
}
.hw-controls button:disabled { color: #9da6aa; border-color: #d7dcde; cursor: default; }
@media (max-width: 850px) {
  .hw-inner { width: 90%; }
  .hw-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #b7c1c7 transparent;
    padding-block: 3px;
  }
  .hw-track:has(+ .hw-controls:not([hidden])) { scrollbar-width: none; }
  .hw-photo { flex: 0 0 75%; scroll-snap-align: start; }
  .hw-photo a:focus-visible { outline-offset: -2px; }
  .hw-photo .hw-caption, .hw-photo:first-child .hw-caption { padding-top: 12px; }
  .hw-photo .hw-caption h3 { font-size: clamp(22px, 3.45vw, 29px); }
}
@media(max-width: 600px) {
  .hw-heading { align-items: start; flex-direction: column; gap: 10px; margin-bottom: 18px; }
  .hw-photo { flex-basis: 92%; }
}
