.fence-hero{padding:clamp(32px,5vw,68px) 0;background:#f5f6f7}
.fence-hero-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:20px 48px;align-items:start}
.fence-hero-heading h1{font-size:clamp(36px,4.2vw,58px);line-height:1.04;margin:0}
.fence-hero-intro{font-size:19px;line-height:1.6;margin-top:22px}
.fence-gallery{grid-column:2;grid-row:1/span 2;min-width:0}
.fence-gallery-track{display:grid;grid-auto-flow:column;grid-auto-columns:100%;overflow-x:auto;scroll-snap-type:x mandatory;border-radius:12px;scrollbar-width:thin;overscroll-behavior-x:contain}
.fence-gallery-slide{margin:0;scroll-snap-align:start;min-width:0;background:#fff}
.fence-gallery-slide>img{width:100%;aspect-ratio:4/3;object-fit:cover}
.fence-gallery-slide figcaption{padding:14px 18px;color:var(--ink);font-weight:600;font-size:17px}
.fence-gallery-slide figcaption span{display:block;font-weight:400;font-size:14px;color:var(--text);margin-top:3px}
.fence-gallery-thumbs{display:flex;gap:12px;margin-top:14px}
.fence-gallery-thumbs a{display:block;width:88px;border:2px solid transparent;border-radius:7px;padding:3px}
.fence-gallery-thumbs a[aria-current=true]{border-color:var(--accent)}
.fence-gallery-thumbs img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:3px}
.fence-gallery a:focus-visible,.fence-gallery-track:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.fence-hero-details{grid-column:1;grid-row:2}
.fence-hero-details .design-actions{margin:0 0 24px;gap:8px;flex-wrap:wrap}
.fence-hero-details ul{display:grid;gap:12px;list-style:none;padding:0;margin:0}
.fence-hero-details li{display:flex;gap:12px;align-items:baseline;font-size:16px}
.fence-hero-details li svg{color:var(--accent);font-size:17px}
.fence-hero-phone{font-size:14px;margin-top:22px}
.fence-hero-phone a{white-space:nowrap;font-weight:600}
.fence-first-enquiry{background:#eef2f5;scroll-margin-top:110px}
.fence-enquiry-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:64px;align-items:start}
.fence-enquiry-grid>div>p:not(.design-eyebrow){margin-top:18px;font-size:18px}
.fence-fit{background:#fff}
.fence-fit>.shell>p:not(.design-eyebrow){margin-top:16px;max-width:760px}
.fence-fit-grid{display:grid;grid-template-columns:1fr 1fr;gap:48px;margin-top:28px}
.fence-fit-grid h3{font-size:25px;margin-bottom:12px}
.fence-fit-grid ul{padding-left:20px;list-style:disc}
.fence-fit-grid li+li,.fence-fit-grid p+p{margin-top:8px}
@media(max-width:760px){
.fence-hero-grid{grid-template-columns:1fr;gap:22px}
.fence-gallery{grid-column:1;grid-row:2}
.fence-hero-details{grid-row:3}
.fence-hero-heading h1{font-size:36px}
.fence-hero-intro{font-size:17px;margin-top:14px}
.fence-gallery-slide>img{aspect-ratio:16/10}
.fence-gallery-thumbs{margin-top:8px}
.fence-gallery-thumbs a{width:64px}
.fence-enquiry-grid,.fence-fit-grid{grid-template-columns:1fr;gap:28px}
}

.fence-gallery-thumbs a{width:100px;flex-shrink:0}
.fence-gallery-thumbs a span{display:block;font-size:12px;line-height:1.4;text-align:center;color:var(--ink);padding-top:5px;white-space:nowrap}
@media(max-width:760px){.fence-gallery-thumbs{gap:8px}.fence-gallery-thumbs a{width:88px}}
.fence-gallery-slide>a{display:block;cursor:zoom-in}
.fence-gallery-slide>a>img{width:100%;aspect-ratio:4/3;object-fit:cover}
.fence-reference-intro{max-width:720px;margin:16px 0 32px}
.fence-reference-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px 28px}
.fence-reference-card{margin:0;min-width:0;scroll-margin-top:120px}
.fence-reference-card[hidden]{display:none}
.fence-reference-card>a{display:block;position:relative;overflow:hidden;border-radius:12px;cursor:zoom-in}
.fence-reference-card img{width:100%;aspect-ratio:3/2;object-fit:cover;transition:transform .3s}
.fence-reference-card>a:hover img{transform:scale(1.02)}
.fence-reference-card a:focus-visible{outline:2px solid var(--accent);outline-offset:5px}
.fence-image-zoom{position:absolute;right:12px;bottom:12px;background:#fff;color:var(--ink);border-radius:50%;width:32px;height:32px;display:grid;place-items:center;font-size:24px}
.fence-reference-card figcaption{padding-top:14px}
.fence-reference-card strong,.fence-reference-card figcaption>span{display:block}
.fence-reference-card strong{color:var(--ink);font-size:18px}
.fence-reference-card figcaption>span{margin-top:5px;font-size:16px;line-height:1.5}
.fence-gallery-more{text-align:center;margin-top:38px}
.fence-lightbox{position:fixed;inset:0;margin:auto;width:min(1200px,96vw);height:min(900px,94dvh);max-width:96vw;max-height:94dvh;border:1px solid #45515c;border-radius:14px;background:#141d25;color:#fff;padding:20px;box-shadow:0 24px 90px #0008}
.fence-lightbox::backdrop{background:#080d12e8;backdrop-filter:blur(5px)}
.fence-lightbox[open]{display:flex;flex-direction:column}
.fence-lightbox-bar{display:flex;justify-content:space-between;align-items:center;gap:20px;padding-bottom:12px;color:#d3dbe2}
.fence-lightbox button{border:1px solid #64717c;border-radius:8px;color:#fff;padding:8px 14px;background:transparent;cursor:pointer;min-height:44px}
.fence-lightbox button:hover{background:#354654}
.fence-lightbox button:focus-visible{outline:2px solid #fff;outline-offset:3px}
.fence-lightbox-stage{display:flex;align-items:center;gap:16px;flex:1;min-height:0}
.fence-lightbox-stage img{flex:1;min-width:0;width:0;height:100%;object-fit:contain}
.fence-lightbox-stage button{font-size:32px;flex-shrink:0}
#fence-lightbox-caption{margin:16px 0 0;line-height:1.5;text-align:center;flex-shrink:0}
#fence-lightbox-caption strong{display:block;font-size:20px;color:white}
#fence-lightbox-caption span{display:block;color:#d3dbe2;font-size:16px;margin-top:4px}
@media(max-width:900px){.fence-reference-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.fence-reference-grid{grid-template-columns:1fr}.fence-lightbox{padding:12px}.fence-lightbox-stage{gap:6px}.fence-lightbox-stage button{padding:4px 9px}.fence-gallery-slide>a>img{aspect-ratio:16/10}}
@media(prefers-reduced-motion:reduce){.fence-reference-card img{transition:none}.fence-reference-card>a:hover img{transform:none}}
/* Original descriptions stay visible; article numbers appear on the image. */
.fence-reference-card figcaption{position:static;padding:12px 0 0;background:none;opacity:1}
.fence-reference-card figcaption strong{display:none}
.fence-reference-card figcaption>span{display:block;margin:0;color:var(--text);font-size:15px;line-height:1.5}
.fence-article-overlay{position:absolute;left:0;right:0;bottom:0;padding:36px 16px 15px;background:linear-gradient(transparent,rgba(12,20,27,.86));color:#fff;font-size:17px;font-weight:600;opacity:0;transition:opacity .2s ease;pointer-events:none}
.fence-reference-card:hover .fence-article-overlay,.fence-reference-card:focus-within .fence-article-overlay{opacity:1}
@media(hover:none){.fence-article-overlay{opacity:1}}
@media(prefers-reduced-motion:reduce){.fence-article-overlay{transition:none}}

.fence-image-zoom{display:flex;align-items:center;justify-content:center;width:34px;height:34px;line-height:1;padding:0;pointer-events:none}
.fence-image-zoom svg{display:block;width:18px;height:18px;flex:none}
.fence-article-overlay{padding-right:58px}
/* Immersive image viewer with a quiet filmstrip. */
.fence-lightbox{inset:0;width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;border:0;border-radius:0;padding:18px 28px 20px;background:#10161cf5;box-shadow:none;overflow:hidden}
.fence-lightbox::backdrop{background:#080d12f5}
.fence-lightbox-bar{padding:0 0 12px;flex-shrink:0;font-size:14px;letter-spacing:.05em}
.fence-lightbox button{display:grid;place-items:center;width:46px;height:46px;min-height:44px;padding:0;border:1px solid #ffffff38;border-radius:50%;background:#ffffff08;transition:background .2s,border-color .2s}
.fence-lightbox button:hover{background:#ffffff1c;border-color:#ffffff80}
.fence-lightbox button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.fence-lightbox-stage{gap:24px}
.fence-lightbox-stage img{max-height:100%;border-radius:3px}
#fence-lightbox-caption{margin:14px auto 0;max-width:900px}
#fence-lightbox-caption strong{font-size:20px;letter-spacing:.015em}
#fence-lightbox-caption span{font-size:15px;line-height:1.45;color:#c4cbd1}
.fence-lightbox-thumbs{display:flex;gap:10px;flex-shrink:0;overflow-x:auto;overflow-y:hidden;width:max-content;max-width:100%;margin:16px auto 0;padding:5px 3px 8px;scrollbar-width:thin;scrollbar-color:#617382 transparent}
.fence-lightbox-thumbs button{flex:0 0 76px;width:76px;height:58px;min-height:0;padding:3px;border-radius:6px;border:2px solid transparent;background:transparent;opacity:.55}
.fence-lightbox-thumbs button[aria-current=true]{opacity:1;border-color:#80afd8}
.fence-lightbox-thumbs button:hover{opacity:1}
.fence-lightbox-thumbs img{display:block;width:100%;height:100%;object-fit:cover;border-radius:2px}
@media(max-width:600px){
 .fence-lightbox{padding:10px 10px 12px}
 .fence-lightbox-stage{position:relative;gap:0}
 .fence-lightbox-stage>img{width:100%}
 .fence-lightbox-stage>button{position:absolute;z-index:1;width:44px;height:44px;background:#10161caa;bottom:8px}
 .fence-lightbox-stage [data-prev]{left:8px}
 .fence-lightbox-stage [data-next]{right:8px}
 #fence-lightbox-caption{margin-top:10px}
 #fence-lightbox-caption strong{font-size:18px}
 #fence-lightbox-caption span{font-size:14px}
 .fence-lightbox-thumbs{gap:7px;margin-top:10px}
 .fence-lightbox-thumbs button{flex-basis:60px;width:60px;height:46px}
}
@media(prefers-reduced-motion:reduce){.fence-lightbox button{transition:none}}

.fence-gallery-slide figcaption span{margin-top:0}

.fence-lightbox [hidden]{display:none}
