#realisations .real-work-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;grid-template-rows:150px 150px 150px;gap:12px}
#realisations .real-work-grid figure{position:relative;min-width:0;min-height:0;overflow:hidden;border-radius:10px}
#realisations .real-work-grid figure:first-child{grid-row:span 3}
#realisations .real-work-grid a{height:100%;border-radius:0}
#realisations .real-work-grid img{width:100%;height:100%;object-fit:cover;background:#e5e8e5;transition:transform .45s ease}
#realisations .real-work-grid a:hover img{transform:scale(1.035)}
#realisations .real-work-grid figcaption{position:absolute;inset:auto 0 0;margin:0;padding:26px 13px 12px;color:#fff;background:linear-gradient(transparent,rgba(13,30,20,.75));font-size:14px;line-height:1.35;pointer-events:none}
#realisations .real-work-grid a:focus-visible{outline:3px solid #278536;outline-offset:-3px}
.work-photo-dialog{padding:0;border:0;border-radius:12px;background:#17231b;color:white;max-width:94vw;max-height:94dvh;width:1080px;overflow:hidden}
.work-photo-dialog::backdrop{background:rgba(12,21,15,.88)}
.work-photo-dialog figure{margin:0;display:grid;grid-template-rows:minmax(0,1fr) auto;height:min(86dvh,850px)}
.work-photo-dialog img{width:100%;height:100%;min-height:0;object-fit:contain}
.work-photo-dialog figcaption{padding:13px 65px;text-align:center;font-size:16px;line-height:1.5}
.work-photo-dialog button{position:absolute;border:1px solid #ffffff50;background:#183521d9;color:white;width:44px;height:44px;border-radius:50%;font:24px/1 inherit;cursor:pointer;display:grid;place-items:center;z-index:1}
.work-photo-close{top:12px;right:12px}.work-photo-prev{left:12px;top:45%}.work-photo-next{right:12px;top:45%}
@media(max-width:900px) and (min-width:701px){#realisations .real-work-grid{grid-template-columns:1.55fr 1fr 1fr;grid-template-rows:160px 160px 160px 160px}#realisations .real-work-grid figure:first-child{grid-row:span 3}}
@media(max-width:700px){#realisations .real-work-grid{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:12px;scrollbar-width:thin;scrollbar-color:#88aa8b transparent}#realisations .real-work-grid figure{flex:0 0 82%;height:340px;scroll-snap-align:center}#realisations .real-work-grid img{height:100%;max-height:none;object-fit:cover}#realisations .real-work-grid figcaption{font-size:16px;padding:35px 14px 14px}.work-photo-dialog figcaption{font-size:15px;padding:12px 45px}}
@media(prefers-reduced-motion:reduce){#realisations .real-work-grid img{transition:none}}
@media(min-width:701px){
#realisations .real-work-grid{grid-template-columns:repeat(12,minmax(0,1fr));grid-template-rows:repeat(2,clamp(195px,25vw,280px));grid-auto-rows:170px;gap:14px}
#realisations .real-work-grid figure{grid-column:span 3;grid-row:auto}
#realisations .real-work-grid figure:first-child{grid-column:1 / span 5;grid-row:1 / span 2}
#realisations .real-work-grid .gallery-feature-2{grid-column:6 / span 7;grid-row:1}
#realisations .real-work-grid .gallery-feature-3{grid-column:6 / span 7;grid-row:2}
#realisations .gallery-feature-1 img{object-position:center 42%}
#realisations .gallery-feature-2 img{object-position:center 55%}
#realisations .gallery-feature-3 img{object-position:center 48%}
#realisations .gallery-feature figcaption{font-size:16px;padding:35px 17px 15px}
}
/* Preserve the complete window and shutter leaves, including in the previews. */
#realisations .real-work-grid img{object-fit:contain;background:#f0f1f2}
#realisations .real-work-grid a:hover img{transform:none}
@media(min-width:701px){
#realisations .real-work-grid{grid-auto-rows:auto;row-gap:22px}
#realisations .real-work-grid figure:not(.gallery-feature){align-self:start;overflow:visible}
#realisations .real-work-grid figure:not(.gallery-feature) a{height:auto;border-radius:10px;overflow:hidden}
#realisations .real-work-grid figure:not(.gallery-feature) img{height:auto;max-height:none;object-fit:contain}
#realisations .real-work-grid figure:not(.gallery-feature) figcaption{position:static;background:none;color:#344d3a;padding:9px 2px 0;font-size:14px}
}
@media(max-width:700px){#realisations .real-work-grid img{object-fit:contain}}
@media(min-width:701px){
#realisations .real-work-grid{grid-template-columns:repeat(32,minmax(0,1fr));grid-template-rows:auto auto}
#realisations .real-work-grid figure{grid-column:span 8}
#realisations .real-work-grid figure:first-child{grid-column:1 / span 17;grid-row:1 / span 2}
#realisations .real-work-grid .gallery-feature-2{grid-column:18 / span 15;grid-row:1;aspect-ratio:4/3}
#realisations .real-work-grid .gallery-feature-3{grid-column:18 / span 15;grid-row:2;aspect-ratio:4/3}
#realisations .gallery-feature-1 img{object-fit:cover;object-position:center}
}
/* A compact gallery follows each photograph's own proportions. */
#realisations .real-work-grid{display:block;columns:3;column-gap:18px;max-width:1020px;margin:0 auto}
#realisations .real-work-grid figure,#realisations .real-work-grid figure:first-child{display:inline-block;width:100%;margin:0 0 20px;break-inside:avoid;vertical-align:top;overflow:visible;aspect-ratio:auto}
#realisations .real-work-grid a{height:auto;overflow:hidden;border-radius:8px;background:transparent}
#realisations .real-work-grid img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;aspect-ratio:auto;background:transparent}
#realisations .real-work-grid figcaption,#realisations .real-work-grid figure:not(.gallery-feature) figcaption{position:static;background:none;color:#344d3a;padding:8px 1px 0;margin:0;font-size:13px;font-weight:500;line-height:1.45}
@media(min-width:1450px){#realisations .real-work-grid{columns:4;max-width:1100px}}
@media(max-width:700px){#realisations .real-work-grid{display:block;columns:2;column-gap:12px;overflow:visible;padding:0;scroll-snap-type:none}#realisations .real-work-grid figure{height:auto;margin-bottom:16px}#realisations .real-work-grid figcaption{font-size:13px}}
@media(max-width:380px){#realisations .real-work-grid{columns:1;max-width:300px}}
@media(min-width:701px){
#realisations .real-work-grid{display:grid;columns:auto;grid-template-columns:repeat(48,minmax(0,1fr));grid-template-rows:auto auto;grid-auto-rows:auto;gap:16px;max-width:900px;margin:0 auto}
#realisations .real-work-grid figure,#realisations .real-work-grid figure:first-child{display:block;width:auto;margin:0;grid-column:span 16;grid-row:auto;align-self:start;min-width:0}
#realisations .real-work-grid .gallery-feature{position:relative;overflow:hidden;border-radius:8px;align-self:stretch}
#realisations .real-work-grid figure.gallery-feature-1{grid-column:1 / span 25;grid-row:1 / span 2}
#realisations .real-work-grid .gallery-feature-2{grid-column:26 / span 23;grid-row:1;aspect-ratio:4/3}
#realisations .real-work-grid .gallery-feature-3{grid-column:26 / span 23;grid-row:2;aspect-ratio:4/3}
#realisations .real-work-grid .gallery-feature a{height:100%}
#realisations .real-work-grid .gallery-feature img{height:100%;object-fit:cover}
#realisations .real-work-grid .gallery-feature figcaption{position:absolute;inset:auto 0 0;background:linear-gradient(transparent,rgba(13,30,20,.75));color:white;padding:25px 12px 12px;font-size:14px;line-height:1.4}
#realisations .real-work-grid figure:not(.gallery-feature) img{height:auto;object-fit:contain}
}

/* Mobile: manual swipe, full photographs and a compact position indicator. */
.work-gallery-controls{display:none}
@media(max-width:700px){
#realisations .real-work-grid{display:flex;columns:auto;gap:12px;max-width:none;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding-inline:0;padding:0 24px 0 0;scrollbar-width:none;align-items:stretch}
#realisations .real-work-grid::-webkit-scrollbar{display:none}
#realisations .real-work-grid figure,#realisations .real-work-grid figure:first-child{display:flex;flex-direction:column;flex:0 0 92%;width:92%;height:auto;margin:0;scroll-snap-align:start;overflow:hidden;min-width:0;aspect-ratio:auto}
#realisations .real-work-grid a{display:flex;align-items:center;justify-content:center;height:clamp(280px,49dvh,420px);flex:none;background:#edf2ed;border-radius:10px}
#realisations .real-work-grid img{width:100%;height:100%;object-fit:contain;background:transparent}
#realisations .real-work-grid figcaption{position:static;background:none;color:#344d3a;padding:10px 0 0;font-size:15px;line-height:1.4}
.work-gallery-controls{display:flex;align-items:center;justify-content:center;gap:24px;margin-top:16px;color:#245b35;font-size:15px;font-variant-numeric:tabular-nums}
.work-gallery-controls button{width:38px;height:38px;border:1px solid #b8cfb9;border-radius:50%;background:#eef5e9;color:#245b35;font-size:24px;cursor:pointer}
.work-gallery-controls button:disabled{opacity:.35;cursor:default}
}

.work-gallery-all{display:none}
.work-gallery-overview{box-sizing:border-box;width:min(940px,94vw);max-height:90dvh;padding:28px 20px;border:0;border-radius:22px;background:#f5f7f1;color:#245b35;overflow:auto}
.work-gallery-overview::backdrop{background:#10231bdd}
.work-gallery-overview h2{margin:0 40px 24px 0;font:inherit;font-size:26px;font-weight:600}
.work-overview-close{position:absolute;right:14px;top:14px;border:0;border-radius:50%;width:36px;height:36px;background:#e0ebdc;color:#245b35;font-size:26px;cursor:pointer}
.work-overview-tiles{columns:3;column-gap:14px}
.work-overview-tiles figure{break-inside:avoid;margin:0 0 18px}
.work-overview-tiles a{display:block;border-radius:16px;overflow:hidden}
.work-overview-tiles img{display:block;width:100%;height:auto;border-radius:16px}
.work-overview-tiles figcaption{font-size:13px;line-height:1.4;margin-top:8px}
@media(max-width:700px){
#realisations .real-work-grid.gallery-three{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto;gap:12px;padding:0;overflow:visible;scroll-snap-type:none}
#realisations .real-work-grid.gallery-three figure,#realisations .real-work-grid.gallery-three figure:first-child{width:auto;display:block;margin:0;height:auto;border-radius:18px;overflow:hidden;position:relative}
#realisations .gallery-three figure:nth-child(n+4){display:none!important}
#realisations .gallery-three figure:first-child{grid-column:1;grid-row:1 / span 2}
#realisations .gallery-three figure:nth-child(2){grid-column:2;grid-row:1}
#realisations .gallery-three figure:nth-child(3){grid-column:2;grid-row:2}
#realisations .real-work-grid.gallery-three a{display:block;height:auto;background:none;border-radius:18px;overflow:hidden}
#realisations .real-work-grid.gallery-three img{display:block;width:100%;height:auto;object-fit:contain;border-radius:18px}
#realisations .real-work-grid.gallery-three figcaption{display:none}
#realisations .gallery-three~.work-gallery-controls{display:none}
.work-gallery-all{display:block;margin:22px auto 0;padding:16px 22px;background:#318332;color:white;border:0;border-radius:12px;font:inherit;font-size:16px;font-weight:600;cursor:pointer}
.work-overview-tiles{columns:2;column-gap:12px}
}

@media(max-width:700px){
#realisations .real-work-grid.gallery-three figure:first-child{align-self:stretch}
#realisations .real-work-grid.gallery-three figure:first-child a{height:100%}
#realisations .real-work-grid.gallery-three figure:first-child img{height:100%;object-fit:cover;object-position:center}
#realisations .real-work-grid.gallery-three figure,#realisations .real-work-grid.gallery-three figure:first-child,#realisations .real-work-grid.gallery-three a,#realisations .real-work-grid.gallery-three img,.work-overview-tiles a,.work-overview-tiles img{border-radius:7px}
}
