.gbd-inner .gbd-gallery-jump {
  display: inline-block;
  padding: 12px;
  font-size: .88rem;
  color: var(--gbd-teal);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.gbd-gallery {
  border-top: 1px solid var(--gbd-line);
  padding-block: clamp(32px, 4vw, 66px) clamp(42px, 5.5vw, 88px);
}
.gbd-gallery header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: clamp(20px, 2.4vw, 34px);
}
.gbd-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); }
.gbd-gallery-photo { position: relative; display: block; aspect-ratio: 3/2; background: var(--gbd-surface); cursor: zoom-in; }
.gbd-gallery-photo img { width: 100%; height: 100%; object-fit: contain; }
.gbd-photo-credit { display: block; margin-top: 6px; color: var(--gbd-teal); font-size: .77rem; }
.gbd-gallery-photo span {
  position: absolute; right: 8px; bottom: 8px;
  padding: 4px 8px; color: white; background: rgb(16 43 53 / .87); font-size: .73rem;
}
.gbd-gallery figcaption { padding-top: 15px; }
.gbd-gallery figcaption h3 { font-size: clamp(1.05rem, 1.55vw, 1.5rem); font-weight: 600; }
.gbd-gallery figcaption p, .gbd-viewer p { margin-top: 8px; font-size: .92rem; line-height: 1.85; color: var(--gbd-text); }
.gbd-viewer {
  border: 0; padding: clamp(14px, 2vw, 24px);
  width: min(1060px, calc(100% - 32px)); max-height: 92dvh;
  background: #fbfcfa; color: var(--gbd-ink); overflow: auto;
}
.gbd-viewer::backdrop { background: rgb(8 23 28 / .82); }
.gbd-viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 12px; }
.gbd-viewer-head h2 { font-size: clamp(1.1rem, 1.75vw, 1.65rem); }
.gbd-viewer-head button { color: var(--gbd-ink); background: transparent; border: 1px solid var(--gbd-line); padding: 8px 15px; flex: none; }
.gbd-viewer img { width: 100%; max-height: 68dvh; object-fit: contain; }

@media (min-width:801px) {
  .gbd-gallery-grid:has(>figure:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width:800px) {
  .gbd-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}

@media (max-width:640px) {
  .gbd-gallery-grid { grid-template-columns: 1fr; gap: 28px; }
  .gbd-gallery-photo { aspect-ratio: auto; }
  .gbd-gallery-photo img { height: auto; max-height: 65svh; }
  .gbd-gallery figcaption { padding-top: 10px; }
}

.product-story-section { border-top:1px solid var(--gbd-line); padding-block:clamp(24px,4vw,48px); }
.product-story-section > .gbd-prose { max-width:68ch; margin:8px 0 16px; }
.product-story { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); align-items:center; gap:clamp(12px,3vw,44px); padding:clamp(10px,2vw,20px) 0; }
.product-story .gbd-gallery-photo { display:block; min-width:0; }
.product-story figcaption h3 { font-size:clamp(1.05rem,1.6vw,1.42rem); line-height:1.35; }
.product-story figcaption p { margin-top:6px; color:var(--gbd-text); font-size:.9rem; line-height:1.6; }
.gbd-inner .product-story-specs { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(18px,4vw,52px); align-items:start; }
.product-story-specs .gbd-spec-list { margin-top:18px; }
.product-spec-stories .product-story { gap:14px; border-bottom:1px solid var(--gbd-line); }
@media(min-width:701px) {
  .product-story-section .product-story:nth-of-type(even) > a { grid-column:2; grid-row:1; }
  .product-story-section .product-story:nth-of-type(even) > figcaption { grid-column:1; grid-row:1; }
}
@media(max-width:700px) {
  .product-story, .gbd-inner .product-story-specs { grid-template-columns:minmax(0,1fr); }
}
