/* Shared screenshot rail and viewer for every product. */
#aranstad-site .product-gallery-shell{
  --pg-control:44px;--pg-side-gap:12px;
  display:grid;grid-template-columns:var(--pg-control) minmax(0,1fr) var(--pg-control);
  align-items:start;gap:var(--pg-side-gap)
}
#aranstad-site .product-gallery-shell .product-gallery-rail{
  display:grid;grid-template-columns:minmax(0,1fr);
  overflow:clip;scroll-snap-type:none;touch-action:pan-y;
  min-width:0;gap:0;padding:8px 0 16px;
}
#aranstad-site .product-gallery-rail .product-gallery-shot{
  grid-area:1/1;justify-self:start;align-self:start;
  width:var(--pg-card-size,100%);min-width:0;box-sizing:border-box;
  transform:translateX(var(--pg-x,0px));
}
#aranstad-site .product-gallery-rail .product-gallery-shot:focus-visible{
  outline:3px solid #345f8a;outline-offset:-3px
}
#aranstad-site .product-gallery-shell > .product-gallery-arrow{
  position:relative;top:var(--pg-arrow-top,44px);transform:translateY(-50%)
}
.product-gallery-arrow{
  display:inline-grid;place-items:center;flex:0 0 auto;
  width:44px;height:44px;padding:0;border:1px solid #9bb2c1;
  border-radius:50%;background:transparent;color:#14212d;cursor:pointer;
}
.product-gallery-arrow[hidden]{visibility:hidden;display:inline-grid}
.product-gallery-arrow svg{display:block;width:21px;height:21px;pointer-events:none}
.product-gallery-arrow:hover{background:#e0ecee}
.product-gallery-arrow:focus-visible,.product-gallery-close:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.product-gallery-viewer{
  position:fixed;inset:0;margin:0;box-sizing:border-box;
  width:100%;max-width:none;height:100vh;height:100dvh;max-height:none;
  padding:12px clamp(8px,1.2vw,24px) 16px;overflow:hidden;border:0;
  background:#112137;color:#eff4f7;font:inherit;color-scheme:dark;
}
.product-gallery-viewer[open]{display:grid;grid-template-rows:auto minmax(0,1fr);gap:8px}
.product-gallery-viewer::backdrop{background:#081018de}
.product-gallery-viewer-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.product-gallery-viewer-heading span{min-width:0;overflow-wrap:anywhere}
.product-gallery-close{
  flex:none;margin-left:auto;padding:0 14px;min-height:32px;
  border:1px solid #afc2d1a6;border-radius:999px;
  color:#eff4f7;background:transparent;cursor:pointer;font:inherit;font-size:14px;
}
.product-gallery-viewer .product-gallery-arrow{color:#eff4f7;border-color:#afc2d1a6}
.product-gallery-viewer .product-gallery-arrow:hover,.product-gallery-close:hover{background:#294b61}
.product-gallery-close:focus:not(:focus-visible){outline:none}
.product-gallery-viewer-stage{
  display:flex;min-height:0;min-width:0;align-items:center;justify-content:center;
  --pg-view-gap:clamp(6px,1.25vw,22px);gap:var(--pg-view-gap)
}
.product-gallery-viewer-frame{
  display:grid;place-items:center;height:100%;min-width:0;
  aspect-ratio:var(--pg-image-ratio,9 / 16);
  max-width:calc(100% - 88px - 2 * var(--pg-view-gap));
}
.product-gallery-viewer-frame img{
  display:block;box-sizing:border-box;width:100%;height:100%;min-height:0;min-width:0;object-fit:contain
}
.product-gallery-viewer[data-single] .product-gallery-viewer-frame{max-width:100%}
.product-gallery-viewer[data-single] .product-gallery-arrow{display:none}
@media(max-width:630px){
  #aranstad-site .product-gallery-shell{--pg-side-gap:4px;--pg-control:38px}
  #aranstad-site .product-gallery-shell .product-gallery-arrow{width:38px}
}

/* Use one gap between the product description and its screenshot gallery. */
#aranstad-site main > .journey-section:has(+ .journey-section [data-product-gallery]){
  padding-block-end:0;
}
#aranstad-site main > :is(.new-product-hero,.detail-hero) + .journey-section:has(+ .journey-section [data-product-gallery]),
#aranstad-site main > .journey-section + .journey-section:has([data-product-gallery]){
  padding-block-start:clamp(28px,3vw,44px);
}
#aranstad-site main > :is(.new-product-hero,.detail-hero) + .journey-section:has(+ .journey-section [data-product-gallery]) > h2:first-child{
  margin-block-start:0;
}
