/* Background belongs only to the existing left-hand copy, leaving its geometry intact. */
body.home-v3 .m2-copy{position:relative;isolation:isolate}
.m2-copy>.hero-gallery{position:absolute;inset:-16px -12px;z-index:-2;overflow:hidden;border-radius:18px;pointer-events:none;background:#faf8f2}
.m2-copy>.hero-gallery::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(250,248,242,.91),rgba(250,248,242,.76)),linear-gradient(0deg,rgba(250,248,242,.6),transparent 65%)}
.hero-gallery__slide{position:absolute;inset:0;opacity:0;transition:opacity 1.4s ease}
.hero-gallery__slide.is-active{opacity:1}
.hero-gallery__slide img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.m2-copy>.hero-gallery__controls{position:absolute;top:-4px;inset-inline-end:0;display:flex;gap:5px;z-index:2;direction:ltr}
.hero-gallery__controls button{display:grid;place-items:center;width:28px;height:28px;border:1px solid #d1dfd9;border-radius:50%;background:#fffffff0;color:#176b60;cursor:pointer;font:13px Arial,sans-serif}
.hero-gallery__controls button:hover{background:#e3f3ed}.hero-gallery__controls button:focus-visible{outline:3px solid #176b60;outline-offset:2px}
@media(max-width:760px){.m2-copy>.hero-gallery{inset:-12px -8px}.m2-copy>.hero-gallery__controls{top:-24px}.hero-gallery__controls button{width:26px;height:26px}}
@media(prefers-reduced-motion:reduce){.hero-gallery__slide{transition:none}}
/* Light foreground over a clearer photographic background. */
.m2-copy>.hero-gallery::after{background:linear-gradient(90deg,rgba(9,32,43,.75),rgba(9,32,43,.48)),linear-gradient(0deg,rgba(9,32,43,.34),transparent 70%)}
body.home-v3 .m2-copy #m2-heading,body.home-v3 .m2-copy #m2-heading span{color:#f7faf8;text-shadow:0 2px 12px #071b2755}
body.home-v3 .m2-copy .m2-summary{color:#f0f5f3;text-shadow:0 1px 5px #071b2755}
body.home-v3 .m2-copy .m2-boundary{color:#e1ece8}
body.home-v3 .m2-copy .m2-badge{background:#173e4dcc;color:#f0f7f3;border:1px solid #ffffff30}
body.home-v3 .m2-copy .m2-dot{background:#a9dfce}
/* Preserve the uploaded photographs' original colours. */
.m2-copy>.hero-gallery::after{background:none}
body.home-v3 .m2-copy #m2-heading,body.home-v3 .m2-copy #m2-heading span{text-shadow:0 2px 5px #071b27cc,0 0 20px #071b2766}
body.home-v3 .m2-copy .m2-summary,body.home-v3 .m2-copy .m2-boundary{color:#f5f8f6;text-shadow:0 1px 3px #071b27,0 0 7px #071b27aa}
/* On phones the slideshow becomes a separate image above the copy. */
@media(max-width:760px){
 body.home-v3 .m2-copy{display:flex;flex-direction:column}
 .m2-copy>.hero-gallery{position:relative;inset:auto;z-index:auto;order:-2;width:100%;height:auto;aspect-ratio:4/3;margin:0 0 20px;border-radius:14px;flex:none}
 .m2-copy>.hero-gallery__controls{position:static;order:-1;align-self:flex-end;margin:-10px 0 18px;gap:8px}
 .hero-gallery__controls button{width:36px;height:36px;font-size:16px}
 .hero-gallery__slide img{object-fit:contain;background:#e8eeeb}
 body.home-v3 .m2-copy #m2-heading{margin-top:0}
 body.home-v3 .m2-copy #m2-heading,body.home-v3 .m2-copy #m2-heading span{color:#15364a;text-shadow:none}
 body.home-v3 .m2-copy #m2-heading .m2-accent{color:#176b60}
 body.home-v3 .m2-copy .m2-summary{color:#536b79;text-shadow:none}
 body.home-v3 .m2-copy .m2-boundary{color:#60717a;text-shadow:none}
 body.home-v3 .m2-copy .m2-badge{align-self:flex-start;background:#e3f3ed;color:#536b79;border-color:transparent}
 body.home-v3 .m2-copy .m2-dot{background:#176b60}
 .m2-copy .m2-actions{width:100%}
}
@media(max-width:760px){
 .m2-copy>.hero-gallery{aspect-ratio:4/3;overflow:hidden}
 .m2-copy>.hero-gallery .hero-gallery__slide img{width:100%;height:100%;object-fit:cover;object-position:center}
 .m2-copy>.hero-gallery .hero-gallery__slide:first-child img{object-position:center 65%}
 .m2-copy>.hero-gallery .hero-gallery__slide:last-child img{object-position:center 62%}
}
/* Compact phone controls overlay the image without adding a separate row. */
@media(max-width:760px){
 .m2-copy>.hero-gallery__controls{position:absolute;top:auto;bottom:auto;inset-inline-end:8px;inset-block-start:calc(75cqw - 34px);order:0;margin:0;gap:4px;padding:3px;border-radius:999px;background:#ffffffb8;backdrop-filter:blur(5px)}
 .m2-copy>.hero-gallery__controls button{width:24px;height:24px;font-size:12px;border-color:#ffffff80;background:#fffffff0}
}

@media(max-width:760px){body.home-v3 .m2-copy{container-type:inline-size}}
