/* Shared gallery. Thumbnails are cropped; the viewer shows the full photograph. */
.gallery-intro{padding:28px 0 44px;background:#f5f7f3;border-bottom:1px solid #dce2df}
.gallery-back{display:inline-block;font-size:11px;font-weight:600;margin-bottom:30px;min-height:24px}
.gallery-back:hover{text-decoration:underline;text-underline-offset:4px}
.gallery-intro-copy{display:grid;grid-template-columns:1.1fr .9fr;align-items:end;gap:60px}
.gallery-intro-copy>*{min-width:0}
.gallery-intro-copy .eyebrow{font-size:10px;margin-bottom:18px}
.gallery-intro h1{font-size:clamp(48px,5.7vw,78px);line-height:1.02;font-weight:500;letter-spacing:-.05em}
.gallery-intro h1 span{color:#426a47}
.gallery-intro-copy>p{max-width:430px;font-size:14px;line-height:1.85;margin-bottom:6px}
.gallery-jump-nav{margin-top:40px}
.gallery-jump-nav ul{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;padding:0;margin:0;gap:16px}
.gallery-jump-nav li{min-width:0}
.gallery-theme-maintenance{--gallery-colour:#17637a;--gallery-soft:#e7f1f4;--gallery-border:#cbdde2}
.gallery-theme-farm{--gallery-colour:#355a38;--gallery-soft:#edf2e6;--gallery-border:#d5e0ca}
.gallery-theme-portequip{--gallery-colour:#9d2528;--gallery-soft:#faf0ef;--gallery-border:#e9d0ce}
.gallery-theme-storage{--gallery-colour:#806322;--gallery-soft:#f2efe5;--gallery-border:#ded6c0}
.gallery-jump{height:100%;display:flex;flex-direction:column;padding:24px;border:1px solid var(--gallery-border);border-top:3px solid var(--gallery-colour);background:#fff;transition:background .18s}
.gallery-jump:hover,.gallery-jump:focus-visible{background:var(--gallery-soft)}
.gallery-jump:focus-visible{outline-color:var(--gallery-colour)}
.gallery-jump-number{font-size:10px;letter-spacing:.1em;color:var(--gallery-colour);margin-bottom:13px;font-weight:700}
.gallery-jump-label{font-size:clamp(21px,2.1vw,29px);font-weight:600;letter-spacing:-.035em;line-height:1.15;max-width:340px;overflow-wrap:break-word}
.gallery-jump-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:var(--gallery-colour);margin-top:auto;padding-top:22px}
.gallery-jump-bottom svg{width:20px;height:20px}
.gallery-section{padding:68px 0;border-bottom:1px solid #dce2df;scroll-margin-top:16px}
.gallery-section.gallery-theme-farm{background:#f8f9f4}
.gallery-section.gallery-theme-storage{background:#faf9f5}
.gallery-section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:40px;margin-bottom:30px}
.gallery-section-heading>div{min-width:0}
.gallery-section-heading .eyebrow{color:var(--gallery-colour);margin-bottom:13px;font-size:10px;letter-spacing:.12em}
.gallery-section h2{font-size:clamp(31px,3.3vw,45px);line-height:1.1;max-width:760px;letter-spacing:-.04em}
.gallery-section-description{font-size:14px;line-height:1.8;margin-top:16px;max-width:600px}
.gallery-section-meta{display:flex;flex-direction:column;align-items:flex-end;gap:15px;flex-shrink:0}
.gallery-count{display:inline-flex;align-items:center;font-size:11px;color:var(--gallery-colour);border:1px solid var(--gallery-border);background:var(--gallery-soft);padding:5px 11px;border-radius:2px;white-space:nowrap}
.gallery-service-link{display:inline-flex;align-items:center;gap:10px;font-size:11px;font-weight:700;color:var(--gallery-colour);line-height:1.5}
.gallery-service-link:hover{text-decoration:underline;text-underline-offset:4px}
.gallery-service-link svg{width:18px;height:18px}
.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 22px}
.gallery-photo{margin:0;min-width:0}
.gallery-photo-link{display:block;border-radius:3px;outline-offset:5px;overflow:hidden;background:var(--gallery-soft)}
.gallery-photo-link:focus-visible{outline-color:var(--gallery-colour)}
.gallery-thumbnail{display:block;aspect-ratio:3/2;position:relative;overflow:hidden;background:var(--gallery-soft)}
.gallery-thumbnail>img{display:block;width:100%;height:100%;object-fit:cover;object-position:var(--gallery-focal,50% 50%)}
.gallery-thumbnail-overview>img{transform:scale(1.08);transform-origin:60% 30%}
.gallery-expand{position:absolute;right:13px;bottom:13px;display:grid;place-items:center;width:37px;height:37px;border:1px solid #ffffff6b;border-radius:3px;background:#14272ecc;color:#fff;transition:background .18s}
.gallery-expand svg{width:21px;height:21px}
.gallery-photo-link:hover .gallery-expand,.gallery-photo-link:focus-visible .gallery-expand{background:var(--gallery-colour)}
.gallery-photo figcaption{display:flex;gap:14px;align-items:baseline;padding:14px 1px 0;font-size:13px;font-weight:600;line-height:1.6;overflow-wrap:anywhere}
.gallery-photo-number{font-size:10px;letter-spacing:.05em;color:var(--gallery-colour);font-weight:500;flex-shrink:0}
.gallery-empty{padding:28px;border:1px solid var(--gallery-border);border-radius:3px;background:var(--gallery-soft);font-size:14px;line-height:1.8;color:var(--gallery-colour)}
.gallery-back-top{display:inline-flex;align-items:center;gap:13px;min-height:44px;margin-top:24px;font-size:11px;font-weight:600;color:var(--gallery-colour)}
.gallery-back-top:hover{text-decoration:underline;text-underline-offset:4px}
.gallery-video{display:grid;grid-template-columns:minmax(0,.74fr) minmax(0,1.6fr);gap:36px;align-items:center;margin-top:48px;padding:30px;border:1px solid #dce3d2;border-radius:4px;background:#edf1e6}
.gallery-video-copy .eyebrow{font-size:10px;line-height:1.7;margin-bottom:17px;color:#527344}
.gallery-video-copy h3{font-size:32px;line-height:1.12;letter-spacing:-.04em;color:#233b2b;margin:0 0 18px}
.gallery-video-copy>p:not(.eyebrow){font-size:14px;line-height:1.8;color:#52624c;margin:0 0 14px}
.gallery-video-copy>p.gallery-video-note{font-size:12px;margin-top:18px}
.gallery-video-copy>a{display:inline-flex;align-items:center;gap:10px;min-height:44px;font-size:12px;font-weight:600;color:#355633;text-decoration:underline;text-underline-offset:4px}
.gallery-video-frame{margin:0;min-width:0}
.gallery-video-frame video{display:block;width:100%;height:auto;aspect-ratio:910/512;object-fit:contain;background:#17251c;border-radius:3px}
.gallery-video-frame figcaption{font-size:10px;line-height:1.6;color:#67795e;margin-top:12px}
.gallery-dialog{width:min(1080px,calc(100vw - 32px));max-width:none;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:0;border:1px solid #50636a;border-radius:6px;background:#10232d;color:#fff;box-shadow:0 20px 80px #0008;overflow:auto;overscroll-behavior:contain}
.gallery-dialog:not([open]){display:none}
.gallery-dialog::backdrop{background:#08121be6}
.gallery-dialog-inner{padding:18px}
.gallery-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:15px}
.gallery-dialog-header h2{font-size:17px;line-height:1.4;letter-spacing:-.02em;font-weight:500;color:#e3edf0}
.gallery-dialog-header button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;border:1px solid #6a818a;border-radius:3px;background:transparent;color:#fff;font-size:13px;line-height:1;flex-shrink:0}
.gallery-dialog-header button svg{width:20px;height:20px}
.gallery-dialog-header button:hover{background:#28434e}
.gallery-image-stage{display:grid;place-items:center;min-height:120px;background:#0a171e;overflow:hidden;border-radius:3px}
.gallery-image-stage>img{display:block;width:auto;height:auto;max-width:100%;max-height:65vh;max-height:calc(100dvh - 235px);object-fit:contain}
.gallery-dialog [hidden]{display:none!important}
#gallery-image-error{padding:35px 22px;text-align:center;color:#dce9ed;font-size:14px;line-height:1.8;max-width:460px}
.gallery-viewer-meta{display:flex;justify-content:space-between;align-items:baseline;gap:25px;margin:17px 2px 18px}
.gallery-viewer-meta p{color:#e3edf0;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
#gallery-viewer-count{white-space:nowrap;font-size:11px;letter-spacing:.04em;color:#b5ccd5;flex-shrink:0}
.gallery-viewer-controls{display:grid;grid-template-columns:1fr auto 1fr;gap:16px;align-items:center}
.gallery-viewer-controls>button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:10px 15px;background:#24434f;border:1px solid #6c8892;color:#fff;border-radius:3px;font-size:13px;line-height:1.2;justify-self:start}
.gallery-viewer-controls>button:last-child{justify-self:end}
.gallery-viewer-controls>button:hover:not(:disabled){background:#365b6a}
.gallery-viewer-controls>button:disabled{opacity:.35;cursor:default}
.gallery-viewer-controls>a{font-size:11px;color:#bfe4eb;text-decoration:underline;text-underline-offset:4px;text-align:center;line-height:1.5}
.gallery-dialog button:focus-visible,.gallery-dialog a:focus-visible{outline:3px solid #8bdbe6;outline-offset:4px}
html.gallery-viewer-open,html.gallery-viewer-open body{overflow:hidden}
@media(max-width:1100px){.gallery-jump-nav ul{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-section-heading{gap:25px}.gallery-section-meta{max-width:210px;flex-shrink:1}.gallery-intro-copy{gap:35px}.gallery-jump{padding:21px}}
@media(max-width:900px){.gallery-video{grid-template-columns:1fr;gap:22px;padding:24px}.gallery-video-copy>p:not(.eyebrow){max-width:620px}.gallery-jump-nav ul{gap:12px}.gallery-jump{padding:18px}.gallery-jump-label{font-size:22px}.gallery-jump-bottom{font-size:10px}}
@media(max-width:760px){.gallery-intro{padding:24px 0 32px}.gallery-back{margin-bottom:25px}.gallery-intro-copy{grid-template-columns:1fr;gap:22px}.gallery-intro-copy .eyebrow{font-size:9px;max-width:420px;line-height:1.8}.gallery-intro h1{font-size:clamp(44px,9vw,64px)}.gallery-intro-copy>p{max-width:none;font-size:14px;margin-bottom:0}.gallery-jump-nav{margin-top:28px}.gallery-jump-nav ul{grid-template-columns:1fr;gap:10px}.gallery-jump{display:grid;grid-template-columns:24px 1fr auto;align-items:center;gap:13px;padding:18px;border-top-width:1px;border-left:3px solid var(--gallery-colour)}.gallery-jump-number{margin:0}.gallery-jump-label{font-size:22px;max-width:none}.gallery-jump-bottom{padding:0;margin:0;gap:10px}.gallery-jump-bottom>span{max-width:76px;text-align:right;line-height:1.5}.gallery-section{padding:44px 0}.gallery-section-heading{display:block;margin-bottom:25px}.gallery-section h2{font-size:34px;max-width:650px}.gallery-section-heading .eyebrow{font-size:9px}.gallery-section-description{font-size:14px;margin-top:14px}.gallery-section-meta{max-width:none;flex-direction:row;align-items:center;justify-content:space-between;gap:15px;margin-top:20px}.gallery-grid{gap:25px 16px}.gallery-photo figcaption{font-size:12px;gap:10px;padding-top:12px}.gallery-expand{width:33px;height:33px;right:10px;bottom:10px}.gallery-expand svg{width:19px;height:19px}.gallery-empty{padding:22px}.gallery-dialog{width:calc(100vw - 20px);max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px)}.gallery-dialog-inner{padding:12px}.gallery-dialog-header{margin-bottom:12px;gap:12px}.gallery-dialog-header h2{font-size:14px}.gallery-dialog-header button{font-size:12px;padding:8px 10px}.gallery-image-stage>img{max-height:62vh;max-height:calc(100dvh - 260px)}.gallery-viewer-meta{gap:15px;margin:15px 0 18px}.gallery-viewer-meta p{font-size:12px}#gallery-viewer-count{font-size:10px}.gallery-viewer-controls{gap:9px}.gallery-viewer-controls>button{gap:7px;padding:10px;font-size:12px}.gallery-viewer-controls>a{font-size:10px}}
@media(max-width:520px){.gallery-grid{grid-template-columns:1fr;gap:27px}.gallery-photo figcaption{font-size:13px}.gallery-jump{grid-template-columns:20px 1fr;gap:8px 12px;padding:17px}.gallery-jump-label{font-size:23px}.gallery-jump-bottom{grid-column:2;justify-content:space-between}.gallery-jump-bottom>span{max-width:none;text-align:left}.gallery-jump-bottom svg{width:18px;height:18px}.gallery-section h2{font-size:31px}.gallery-section-meta{align-items:flex-start}.gallery-service-link{max-width:180px;justify-content:flex-end;text-align:right;font-size:10px}.gallery-video{padding:16px;gap:16px;margin-top:32px}.gallery-video-copy .eyebrow{font-size:9px;margin-bottom:12px}.gallery-video-copy h3{font-size:28px}.gallery-video-copy>p:not(.eyebrow){font-size:13px}.gallery-video-copy>p.gallery-video-note{font-size:11px}.gallery-video-frame figcaption{font-size:9px}.gallery-viewer-meta{flex-direction:column;gap:7px}.gallery-viewer-controls{gap:7px}.gallery-viewer-controls>button{padding:10px 8px;font-size:11px;gap:5px}}
@media(prefers-reduced-motion:reduce){.gallery-jump,.gallery-expand{transition:none}}

/* Keep the full equipment visible in Portequip product thumbnails. */
.gallery-theme-portequip .gallery-thumbnail{aspect-ratio:4/3}
.gallery-theme-portequip .gallery-thumbnail>img{object-fit:contain;transform:none}
.gallery-section.gallery-theme-portequip{background:#fdf9f8}
