.about-tech-scope {
  display: grid;
  gap: 42px;
  padding-bottom: 0;
}

.about-warehouse-copy {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(360px, 1.12fr);
  gap: clamp(64px, 8vw, 150px);
  align-items: end;
  padding: 28px 4vw 6px;
}

.about-warehouse-copy > div {
  width: min(100%, 520px);
  justify-self: center;
  padding-bottom: 3px;
}

.about-warehouse-copy .section-index {
  margin: 0 0 16px;
  color: var(--label-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}

.about-warehouse-copy h2 {
  margin: 0;
  color: #15575a;
  font-size: clamp(46px, 4.55vw, 68px);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: .94;
}

.about-warehouse-copy > p {
  max-width: 680px;
  margin: 0 0 4px;
  color: #42696b;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.7;
}

.about-tech-scope .about-warehouse-gallery {
  --warehouse-gallery-gap: 16px;
  display: grid;
  gap: 16px;
  width: 100%;
  height: auto;
  min-width: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

.about-tech-scope .about-warehouse-gallery::after {
  display: none;
}

.warehouse-gallery-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.warehouse-gallery-viewport::-webkit-scrollbar {
  display: none;
}

.warehouse-gallery-viewport:focus-visible {
  outline: 2px solid #56c8cd;
  outline-offset: 4px;
}

.warehouse-gallery-viewport.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.warehouse-gallery-track {
  display: flex;
  align-items: flex-start;
  gap: var(--warehouse-gallery-gap);
  width: max-content;
  min-width: 100%;
  padding-right: 72px;
}

.warehouse-gallery-slide {
  flex: 0 0 clamp(420px, 30vw, 440px);
  height: 270px;
  margin: 0;
  overflow: hidden;
  background: transparent;
  scroll-snap-align: start;
}

.about-tech-scope .warehouse-gallery-slide > img {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
  opacity: 1;
}

/* The source photos have two native aspect ratios; keep each crop centered on
   the warehouse subject while limiting the desktop frame to a light crop. */
.warehouse-gallery-slide:nth-child(1) > img {
  object-position: center 52%;
}

.warehouse-gallery-slide:nth-child(2) > img {
  object-position: center 50%;
}

.warehouse-gallery-slide:nth-child(3) > img {
  object-position: center 54%;
}

.warehouse-gallery-slide:nth-child(4) > img {
  object-position: center 50%;
}

.warehouse-gallery-slide:nth-child(5) > img {
  object-position: center 52%;
}

.warehouse-gallery-meta {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  min-height: 42px;
}

.warehouse-gallery-caption,
.warehouse-gallery-count {
  position: static;
  z-index: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  color: #15575a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
}

.warehouse-gallery-count {
  color: var(--muted-text);
  font-variant-numeric: tabular-nums;
}

.warehouse-gallery-controls {
  position: static;
  z-index: auto;
  display: flex;
  gap: 7px;
}

.warehouse-gallery-controls button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(21, 87, 90, .72);
  border-radius: 0;
  background: #fff;
  color: #15575a;
  font: 20px / 1 Arial, sans-serif;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}

.warehouse-gallery-controls button:hover:not(:disabled),
.warehouse-gallery-controls button:focus-visible:not(:disabled) {
  border-color: #15575a;
  background: #15575a;
  color: #fff;
  outline: none;
}

.warehouse-gallery-controls button:disabled {
  border-color: rgba(21, 87, 90, .22);
  color: rgba(21, 87, 90, .32);
  cursor: default;
}

@media (max-width: 800px) {
  .about-tech-scope {
    gap: 28px;
  }

  .about-warehouse-copy {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 20px 0 2px;
  }

  .about-warehouse-copy > div {
    justify-self: start;
    padding-bottom: 0;
  }

  .about-warehouse-copy h2 {
    font-size: clamp(40px, 11vw, 50px);
  }

  .about-warehouse-copy > p {
    font-size: 17px;
  }

  .warehouse-gallery-track {
    padding-right: 52px;
  }

  .warehouse-gallery-slide {
    flex-basis: min(390px, calc((100vw - 150px) / 2));
    height: auto;
    aspect-ratio: 1.62;
  }

  .warehouse-gallery-meta {
    gap: 12px;
  }

  .warehouse-gallery-caption,
  .warehouse-gallery-count {
    font-size: 12px;
  }
}

@media (max-width: 600px) {
  .about-tech-scope .about-warehouse-gallery {
    --warehouse-gallery-gap: 14px;
  }

  .warehouse-gallery-track {
    padding-right: 50px;
  }

  .warehouse-gallery-slide {
    flex-basis: calc(100vw - 82px);
    height: 192px;
    aspect-ratio: auto;
    overflow: hidden;
  }

  .about-tech-scope .warehouse-gallery-slide > img {
    height: 100%;
    object-fit: cover;
  }

  .warehouse-gallery-meta {
    grid-template-columns: 1fr auto;
  }

  .warehouse-gallery-count {
    justify-self: end;
  }

  .warehouse-gallery-controls {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .warehouse-gallery-viewport {
    scroll-behavior: auto;
  }
}
