/* Homepage-only extension; the shared page and overlay controllers remain unchanged. */
.home-centre{background:var(--home-white)}
.home-centre .section-kicker>span+span{display:block}
.home-centre-layout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(40px,6vw,88px);align-items:center}
.home-centre-copy h2{font-size:clamp(36px,3.6vw,54px);line-height:1.15;max-width:510px}
.home-centre-copy>p{font-size:17px;color:var(--muted);max-width:485px;margin-top:25px}
.home-centre-copy>.text-link{margin-top:24px;min-height:44px;font-size:15px;font-weight:500;color:var(--blue);gap:22px;text-align:left;border:0}
.home-centre-copy>.text-link:hover .action-label{text-decoration:underline;text-underline-offset:6px}
.home-centre-photo{position:relative;isolation:isolate;margin:0 10px 12px 0;aspect-ratio:4/3;min-width:0}
.home-centre-photo:before{content:'';position:absolute;inset:12px -10px -12px 12px;background:#e6ebea;border-radius:8px 8px 84px 8px;z-index:-1}
.home-centre-preview{display:block;width:100%;height:100%;padding:0;overflow:hidden;border-radius:8px 8px 84px 8px;background:#e6ebea;text-align:left}
.home-centre-preview picture,.home-centre-preview img{display:block;width:100%;height:100%}
.home-centre-preview img{object-fit:cover;object-position:center;transition:transform .5s var(--ease)}
@media(hover:hover) and (pointer:fine){.home-centre-preview:hover img{transform:scale(1.025)}}
.home-centre-photo figcaption{position:absolute;inset:auto 0 0;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:42px 28px 22px 23px;border-radius:0 0 84px 8px;background:linear-gradient(transparent,rgba(20,37,49,.8));color:#fffefa;font-size:12px;line-height:1.5;pointer-events:none}
.home-centre-open-icon{display:grid;place-items:center;width:44px;height:44px;border:1px solid #ffffffa0;border-radius:50%;flex:none;background:#ffffff0a}
.home-centre-open-icon svg{width:20px;height:20px}
.home-centre-preview:is(:hover,:focus-visible)+figcaption .home-centre-open-icon{background:#fffefa;color:var(--ink)}
.home-centre-preview:focus-visible{outline:3px solid var(--blue);outline-offset:6px}
/* Accepted viewer language, scoped to the Homepage. Wide crops fill the frame. */
#home-centre-gallery.overlay-shell{position:fixed;inset:0;width:min(var(--overlay-max),calc(100vw - 64px));max-width:none;height:100dvh;max-height:100dvh;min-height:0;margin:0 auto;padding:0;border:0;border-radius:0;overflow:hidden;background:transparent;color:var(--ink);box-shadow:none;scrollbar-width:none}
#home-centre-gallery:not([open]){display:none}
#home-centre-gallery[open]{display:block}
#home-centre-gallery:focus{outline:none}
#home-centre-gallery::backdrop{background:transparent;backdrop-filter:none}
#home-centre-gallery .overlay-surface{position:relative;isolation:isolate;display:flex;flex-direction:column;width:100%;height:100%;min-height:0;overflow:hidden;background:var(--overlay-surface);opacity:var(--overlay-progress);translate:0 calc((1 - var(--overlay-progress)) * 8px)}
#home-centre-gallery[data-overlay-state=OPEN] .overlay-surface{opacity:1;translate:none}
#home-centre-gallery .drug-talk-top{position:relative;z-index:2;display:flex;flex:0 0 calc(64px + env(safe-area-inset-top));align-items:center;justify-content:space-between;gap:20px;padding:calc(8px + env(safe-area-inset-top)) var(--overlay-pad-x) 8px;background:var(--overlay-surface)}
#home-centre-gallery .drug-talk-top>.eyebrow{font-size:11px;font-weight:600;letter-spacing:.08em;color:var(--muted)}
#home-centre-gallery .overlay-close{display:grid;place-items:center;width:48px;height:48px;flex:none;padding:0;border:0;border-radius:50%;background:#e8edef;color:#536875}
#home-centre-gallery .overlay-close svg{width:24px;height:24px}
#home-centre-gallery .overlay-scroller{position:relative;z-index:1;flex:1 1 auto;min-height:0;overflow:hidden;overscroll-behavior:contain;overflow-anchor:none;scrollbar-width:none}
#home-centre-gallery .drug-talk-content{display:flex;flex-direction:column;width:100%;height:100%;min-height:0;margin:0;padding:16px var(--overlay-pad-x) max(20px,env(safe-area-inset-bottom))}
#home-gallery-title{flex:none;font-size:clamp(32px,3.4vw,44px);line-height:1.15;letter-spacing:-.04em;font-weight:500;margin:0 0 12px}
#home-gallery-description{flex:none;max-width:760px;font-size:16px;color:var(--muted);line-height:1.6;margin:0 0 20px}
.home-gallery-stage{flex:none;display:grid;grid-template-columns:44px var(--hg-frame-w,800px) 44px;justify-content:center;gap:20px;align-items:center;height:var(--hg-frame-h,420px);min-width:0}
.home-gallery-frame{margin:0;min-width:0;width:var(--hg-frame-w,800px);height:var(--hg-frame-h,420px);overflow:hidden;border-radius:10px;background:var(--overlay-surface);touch-action:pan-y}
.home-gallery-frame picture,.home-gallery-frame img{display:block;width:100%;height:100%}
.home-gallery-frame img{object-fit:cover;object-position:50% 50%;filter:none;transform:none}
.home-gallery-frame img[data-scene=common]{object-position:50% 65%}
.home-gallery-frame img[data-scene=recreation]{object-position:50% 70%}
.home-gallery-frame img[data-scene=kitchen]{object-position:50% 30%}
.home-gallery-frame img[data-scene=bedroom]{object-position:50% 52%}
.home-gallery-frame img[data-scene=bathroom]{object-position:50% 65%}
.home-gallery-frame img[data-scene=sessions]{object-position:50% 65%}
.home-gallery-frame img[data-scene=building]{object-position:50% 5%}
.home-gallery-arrow{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#e8edef;color:var(--ink);padding:0;font-size:23px;line-height:1}
.home-gallery-arrow:hover{background:#dce4e9;color:var(--blue)}
.home-gallery-counter{flex:none;display:block;text-align:center;font-size:13px;font-variant-numeric:tabular-nums;color:var(--muted);line-height:20px;margin:10px 0 0}
.home-gallery-caption{flex:none;width:min(760px,100%);margin:10px auto 0;min-height:26px;font-size:17px;color:var(--ink);line-height:1.5;text-align:center}
.home-gallery-footer{position:relative;display:grid;grid-template-columns:minmax(0,1fr);align-items:center;flex:none;min-height:32px;margin-top:6px}
.home-gallery-pagination{grid-column:1/-1;grid-row:1;justify-self:center;display:flex;justify-content:center;gap:2px;margin:0;width:224px}
.home-gallery-pagination button{display:grid;place-items:center;width:30px;height:32px;padding:0;flex:none}
.home-gallery-pagination button>span{width:19px;height:3px;border-radius:2px;background:#d9e0e5}
.home-gallery-pagination button[aria-current=true]>span{background:var(--blue)}
/* Same large, cropped right-edge brand fragment as Drug; the surface clips its decorative overflow. */
#home-centre-gallery .overlay-watermark{position:absolute;z-index:0;right:-170px;bottom:36px;width:320px;height:380px;overflow:hidden;display:block;visibility:visible;opacity:.035;pointer-events:none;user-select:none}
#home-centre-gallery .overlay-watermark img{position:absolute;left:0;top:0;display:block;width:440px;max-width:none;height:440px;object-fit:contain;pointer-events:none}
#home-centre-gallery :focus-visible{outline:2px solid var(--blue);outline-offset:4px}
/* Only enlarged text that cannot physically fit uses a reading fallback. Standard QA sizes never enter it. */
#home-centre-gallery.hg-accessibility-mode .overlay-scroller{overflow-y:auto}
#home-centre-gallery.hg-accessibility-mode .drug-talk-content{height:auto;min-height:100%}
@media(max-width:1100px){#home-centre-gallery .overlay-watermark{right:-205px;opacity:.028}}
@media(max-width:1000px){.home-centre-layout{gap:40px}.home-centre-copy h2{font-size:38px}.home-centre-copy>p{font-size:16px}}
@media(max-width:800px){
 .home-centre-layout{grid-template-columns:1fr;gap:28px}
 .home-centre .section-kicker{margin-bottom:29px;align-items:flex-start;gap:16px}
 .home-centre .section-kicker>span+span{max-width:160px;text-align:right;font-size:12px;line-height:1.5}
 .home-centre-copy h2{font-size:clamp(34px,6vw,44px);max-width:590px}
 .home-centre-copy>p{max-width:620px;margin-top:22px}
 .home-centre-copy>.text-link{margin-top:18px}
 .home-centre-photo{max-width:620px;margin-right:10px;width:calc(100% - 10px)}
 #home-centre-gallery.overlay-shell{width:100%;margin:0}
 #home-centre-gallery .drug-talk-top>.eyebrow{font-size:10px}
 #home-centre-gallery .drug-talk-content{padding-top:12px;padding-bottom:max(16px,env(safe-area-inset-bottom))}
 #home-gallery-title{font-size:32px;margin-bottom:10px}
 #home-gallery-description{font-size:15px;line-height:1.5;margin-bottom:16px}
 .home-gallery-stage{grid-template-columns:var(--hg-frame-w,100%);gap:0}
 .home-gallery-frame{grid-column:1;grid-row:1}
 .home-gallery-arrow{position:relative;z-index:1;grid-column:1;grid-row:1;background:rgba(255,254,250,.94);border:1px solid #d9e0e5}
 .home-gallery-prev{justify-self:start;margin-left:10px}.home-gallery-next{justify-self:end;margin-right:10px}
 .home-gallery-counter{margin-top:8px}
 .home-gallery-caption{width:100%;max-width:none;margin-top:8px;min-height:45px;font-size:15px;text-align:left}
 .home-gallery-footer{min-height:32px;margin-top:4px}
 .home-gallery-pagination{grid-column:1;justify-self:center;width:auto;max-width:100%;gap:0}
 .home-gallery-pagination button{width:28px}
 #home-centre-gallery .overlay-watermark{right:0;bottom:24px;width:var(--overlay-pad-x);height:240px;opacity:.022}
 #home-centre-gallery .overlay-watermark img{left:-42px;width:280px;height:280px}
 .home-gallery-frame img[data-scene=common]{object-position:50% 70%}
 .home-gallery-frame img[data-scene=recreation]{object-position:50% 80%}
 .home-gallery-frame img[data-scene=kitchen]{object-position:50% 25%}
 .home-gallery-frame img[data-scene=bedroom]{object-position:50% 45%}
 .home-gallery-frame img[data-scene=bathroom]{object-position:50% 62%}
 .home-gallery-frame img[data-scene=sessions]{object-position:50% 62%}
 .home-gallery-frame img[data-scene=building]{object-position:50% 10%}
}
@media(max-width:600px){
 .home-centre.section{padding-top:42px;padding-bottom:54px}
 .home-centre .section-kicker{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.85fr);gap:14px}
 .home-centre .section-kicker>span+span{font-size:11px;justify-self:end}
 .home-centre-copy h2{font-size:34px}
 .home-centre-photo figcaption{font-size:11px;padding:35px 22px 17px 17px;border-bottom-right-radius:60px}
 .home-centre-preview,.home-centre-photo:before{border-bottom-right-radius:60px}
 .home-centre-open-icon{width:44px;height:44px}
}
@media(max-width:359px){.home-centre-copy h2{font-size:31px}.home-centre-photo figcaption{max-width:100%;font-size:10px;gap:10px}.home-centre-copy>.text-link{font-size:14px;gap:12px}}
@media(prefers-reduced-motion:reduce){.home-centre-preview img{transition:none;transform:none!important}}
