
/* ===== THE PINNED GALLERY, ON THE SERVICES PAGES (svcgallery.py) ========
   Copied from services_page.py rather than rewritten, because Matt asked for
   the same gallery and the same gallery means the same numbers. The page
   stops, the photographs travel sideways under it, the page carries on.
   Below 900px, and for anyone who has asked for less motion, it is a plain
   row you swipe. */
.gl{position:relative;padding:0;}
.gl-pin{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;
  justify-content:center;gap:48px;overflow:hidden;}
.gl-top{display:flex;align-items:flex-end;justify-content:space-between;
  gap:32px;width:100%;}
.gl-meter{display:flex;align-items:center;gap:18px;padding-bottom:10px;
  color:rgba(255,255,255,.55);font-size:13px;letter-spacing:.3px;
  font-variant-numeric:tabular-nums;}
.gl-count b{color:#fff;font-weight:600;}
.gl-bar{position:relative;width:180px;height:2px;
  background:rgba(255,255,255,.14);overflow:hidden;border-radius:2px;}
.gl-bar i{position:absolute;inset:0;background:var(--aqua,#00eac8);
  transform-origin:left;transform:scaleX(var(--gp,.125));}
.gl-view{width:100%;}
.gl-track{display:flex;gap:24px;
  padding:0 max(32px, calc((100vw - var(--max,1332px)) / 2 + 32px));
  transform:translate3d(var(--gx,0px),0,0);will-change:transform;
  width:max-content;}
/* BIGGER. Matt, 7 October: "images on the galleries rails can be bigger for
   more impact." They were capped at 480px, so on anything from a laptop
   upwards the photographs were the same size and the window just got emptier
   around them: at 1920 the cap was spending a third of the screen on nothing.

   Three terms, and each one is the limit in a different kind of window:

     40vw            wide and short. Keeps two and a half photographs on
                     screen so the rail still reads as a rail.
     760px           very wide. Past about 1900 the photographs stop growing,
                     because an image that fills the window is a hero rather
                     than one of eight.
     133.33vh-440px  SHORT. This is the one that matters and the one the old
                     58vh guess was standing in for. The pinned area is the
                     window less the heading block and the gap, about 241px,
                     and the figure is the photograph at 4:3 plus 38px of
                     caption. Solve that for width and it is 1.3333 times the
                     window height less 372; 440 leaves 50px of air so a
                     caption never touches the bottom edge.

   At 1692 by 860, which is the window Matt sent, that is 677px rather than
   480. At 1920 by 1080 it is 760. On a 700px tall laptop it is 493, barely
   more than before, which is correct: there is no room there and growing it
   would push the caption off the screen. */
.gl-i{margin:0;flex:0 0 auto;display:flex;flex-direction:column;gap:14px;
  width:min(40vw,760px,calc(133.33vh - 440px));}
.gl-ph{width:100%;aspect-ratio:4/3;border-radius:26px;background-size:cover;
  background-position:center;background-color:rgba(255,255,255,.04);}
.gl-i figcaption{display:flex;gap:14px;font-size:14px;
  color:rgba(255,255,255,.6);}
.gl-i figcaption b{color:var(--aqua,#00eac8);font-weight:600;}
@media (max-width:899px), (prefers-reduced-motion:reduce){
  .gl{height:auto !important;padding:96px 0 40px;}
  .gl-pin{position:static;height:auto;gap:32px;}
  .gl-meter{display:none;}
  .gl-view{overflow-x:auto;overflow-y:hidden;overflow-y:clip;scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;scrollbar-width:none;}
  .gl-view::-webkit-scrollbar{display:none;}
  .gl-track{transform:none !important;padding:0 20px;}
  .gl-i{scroll-snap-align:start;width:78vw;}
}


/* ===== the onshoring page (onshoring_page.py) ========================== */
.osh-ev{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;margin-top:42px;}
.osh-e{border-radius:22px;padding:30px 28px 28px;
  background:rgba(255,255,255,.05);}
.osh-e b{display:block;font-family:'Gotham','Inter',Arial,sans-serif;
  font-weight:900;font-size:clamp(34px,3.6vw,50px);line-height:1;
  letter-spacing:-.02em;color:#00eac8;}
.osh-e p{margin:14px 0 0;font-size:15px;line-height:1.66;
  color:rgba(255,255,255,.72);}
.osh-note{margin:30px 0 0;font-size:15.5px;line-height:1.7;
  color:rgba(255,255,255,.6);max-width:60em;}
.osh-two{display:grid;grid-template-columns:1fr 1fr;gap:var(--gut,40px);
  margin-top:42px;}
.osh-two h3{margin:0 0 12px;font-size:19px;font-weight:700;color:#fff;}
.osh-two p{margin:0 0 14px;font-size:16px;line-height:1.72;
  color:rgba(255,255,255,.72);}
.osh-two p:last-child{margin-bottom:0;}
@media (max-width:900px){
  .osh-ev,.osh-two{grid-template-columns:1fr;gap:16px;margin-top:28px;}
}
