/* Shared photo headline, following the owner's 09/11 reference. */
html body.ekh-enhanced :is(.ekh-secondary-hero,.ekh-home-fullscreen){isolation:isolate}
html body.ekh-enhanced .ekh-secondary-hero::after,
html body.ekh-enhanced.ekh-home #main .ekh-home-fullscreen::after{content:"";display:block!important;position:absolute;inset:0;z-index:0;pointer-events:none;background:none}
html body.ekh-enhanced.ekh-studio .ekh-secondary-hero .ekh-secondary-hero-copy,
html body.ekh-enhanced.ekh-studio #main .ekh-secondary-hero .ekh-secondary-hero-copy,
html body.ekh-enhanced.ekh-home #main .ekh-home-fullscreen .ekh-hero-overlay{position:relative;z-index:1;width:min(1020px,87.6vw);margin:0 6.2vw clamp(52px,8svh,100px);left:auto;right:auto;bottom:auto;padding:0!important;text-align:left;align-self:flex-end}
html body.ekh-enhanced.ekh-home #main .ekh-home-fullscreen .ekh-hero-overlay{position:absolute;left:6.2vw;bottom:clamp(52px,8svh,100px);margin:0;display:flex;gap:22px}
html body.ekh-enhanced.ekh-studio .ekh-secondary-hero .ekh-secondary-hero-copy :is(h1,em,p,a),
html body.ekh-enhanced.ekh-studio #main .ekh-secondary-hero .ekh-secondary-hero-copy :is(h1,em,p,a),
html body.ekh-enhanced.ekh-home #main .ekh-home-fullscreen .ekh-hero-overlay :is(p,span){color:#fff!important;-webkit-text-fill-color:#fff!important;-webkit-text-stroke:0!important;text-shadow:0 2px 14px rgba(0,0,0,.24)!important}
html body.ekh-enhanced.ekh-studio .ekh-secondary-hero h1#ekh-page-photo-title,
html body.ekh-enhanced.ekh-studio #main .ekh-secondary-hero h1#ekh-page-photo-title,
html body.ekh-enhanced.ekh-home #main .ekh-home-fullscreen .ekh-hero-title-main{font-family:'Ecohome Sans',Arial,sans-serif!important;font-size:clamp(42px,5.8vw,94px)!important;font-weight:700!important;font-style:normal!important;line-height:1.18!important;letter-spacing:-.035em!important;text-transform:uppercase;max-width:23ch!important;margin:0 0 18px!important;text-wrap:balance}
html body.ekh-enhanced.ekh-studio .ekh-secondary-hero h1#ekh-page-photo-title em,
html body.ekh-enhanced.ekh-studio #main .ekh-secondary-hero h1#ekh-page-photo-title em,
html body.ekh-enhanced.ekh-home #main .ekh-home-fullscreen .ekh-hero-title-sub{display:block;font-family:'Ecohome Art',Georgia,serif!important;font-size:1.02em!important;font-weight:500!important;font-style:italic!important;line-height:1.28!important;letter-spacing:-.045em!important;text-transform:none!important;margin:0!important;max-width:none!important}
html body.ekh-enhanced.ekh-home #main .ekh-home-fullscreen .ekh-hero-title-sub{font-size:clamp(40px,5.6vw,90px)!important}
html body.ekh-enhanced .ekh-secondary-hero .ekh-secondary-hero-label,
html body.ekh-enhanced.ekh-home #main .ekh-home-fullscreen .ekh-hero-kicker{font:600 14px/1.6 'Ecohome Sans',Arial,sans-serif!important;letter-spacing:.065em!important;margin:0 0 18px!important;text-transform:none}
html body.ekh-enhanced .ekh-secondary-hero .ekh-secondary-hero-lead{font-size:16px!important;line-height:1.65!important;max-width:50ch;margin-bottom:14px!important}
html body.ekh-enhanced.ekh-home #main .ekh-home-fullscreen .ekh-hero-sub{font-size:14px!important;line-height:1.6!important;font-weight:500!important}
@media(max-width:760px){
html body.ekh-enhanced.ekh-studio .ekh-secondary-hero .ekh-secondary-hero-copy,
html body.ekh-enhanced.ekh-studio #main .ekh-secondary-hero .ekh-secondary-hero-copy{width:calc(100% - 48px)!important;margin:0 24px 90px!important}
html body.ekh-enhanced.ekh-home #main .ekh-home-fullscreen .ekh-hero-overlay{width:calc(100% - 48px)!important;left:24px;bottom:90px;gap:16px}
html body.ekh-enhanced.ekh-studio .ekh-secondary-hero h1#ekh-page-photo-title,
html body.ekh-enhanced.ekh-studio #main .ekh-secondary-hero h1#ekh-page-photo-title,
html body.ekh-enhanced.ekh-home #main .ekh-home-fullscreen .ekh-hero-title-main{font-size:clamp(29px,7.8vw,54px)!important;line-height:1.24!important;max-width:100%!important;overflow-wrap:break-word}
html body.ekh-enhanced.ekh-home #main .ekh-home-fullscreen .ekh-hero-title-main{font-size:clamp(40px,11.6vw,64px)!important}
html body.ekh-enhanced.ekh-home #main .ekh-home-fullscreen .ekh-hero-title-sub{font-size:clamp(34px,9.4vw,52px)!important}
html body.ekh-enhanced .ekh-secondary-hero .ekh-secondary-hero-label,
html body.ekh-enhanced.ekh-home #main .ekh-home-fullscreen .ekh-hero-kicker{font-size:11px!important;letter-spacing:.04em!important;margin-bottom:12px!important}
html body.ekh-enhanced .ekh-secondary-hero .ekh-secondary-hero-lead{font-size:14px!important;line-height:1.6!important}
}
@media(max-height:600px) and (min-width:761px){html body.ekh-enhanced .ekh-secondary-hero .ekh-secondary-hero-copy{margin-bottom:28px!important}html body.ekh-enhanced .ekh-secondary-hero h1#ekh-page-photo-title{font-size:clamp(36px,5vw,64px)!important}}

/* Local soft backing: preserve the brightness of the photograph outside the copy. */
html body.ekh-enhanced .ekh-secondary-hero-copy::before,
html body.ekh-enhanced.ekh-home #main .ekh-hero-overlay::before{content:"";position:absolute;inset:-48px -64px;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 40% 58%,rgba(20,20,20,.42) 0%,rgba(20,20,20,.27) 42%,rgba(20,20,20,.08) 64%,transparent 77%);filter:blur(12px)}
@media(max-width:760px){html body.ekh-enhanced .ekh-secondary-hero-copy::before,html body.ekh-enhanced.ekh-home #main .ekh-hero-overlay::before{inset:-34px -28px;filter:blur(8px)}}
/* A slight wider view of the approved Rainbow original; no generated pixels. */
@media(min-width:900px){
html body.ekh-enhanced .ekh-secondary-hero-school-wide::before{content:"";position:absolute;inset:-24px;z-index:-3;background-image:var(--ekh-hero-photo);background-position:center bottom;background-size:cover;filter:blur(18px);pointer-events:none}
html body.ekh-enhanced .ekh-secondary-hero-school-wide .ekh-secondary-hero-image{inset:auto auto 0 50%!important;width:100%!important;height:auto!important;max-height:none!important;object-fit:contain!important;transform:translateX(-50%) scale(.88);transform-origin:center bottom;mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent)}
}

/* Lift the expanded Rainbow framing slightly without affecting other heroes. */
html body.ekh-enhanced .ekh-secondary-hero-image[src*="rainbow-outpaint-"]{top:-28px!important;bottom:auto!important;height:calc(100% + 28px)!important;object-position:center bottom!important}

/* Secondary pages: compact editorial copy anchored to the lower left. Home is excluded. */
html body.ekh-enhanced:not(.ekh-home) #main .ekh-secondary-hero .ekh-secondary-hero-copy{
 position:absolute!important;inset:auto auto clamp(40px,6svh,68px) clamp(28px,4.4vw,80px)!important;
 width:min(780px,calc(100% - 2 * clamp(28px,4.4vw,80px)))!important;
 margin:0!important;padding:0!important;transform:none!important;text-align:left!important;isolation:isolate;
}
html body.ekh-enhanced:not(.ekh-home) #main .ekh-secondary-hero h1#ekh-page-photo-title{
 font-size:clamp(36px,4.2vw,66px)!important;line-height:1.16!important;letter-spacing:-.025em!important;
 max-width:22ch!important;margin:0 0 16px!important;text-wrap:pretty;overflow-wrap:break-word;
}
html body.ekh-enhanced:not(.ekh-home) #main .ekh-secondary-hero h1#ekh-page-photo-title em{
 font-size:.94em!important;line-height:1.24!important;letter-spacing:-.025em!important;margin-top:4px!important;
}
html body.ekh-enhanced:not(.ekh-home) #main .ekh-secondary-hero .ekh-secondary-hero-label{
 font-size:12px!important;line-height:1.5!important;letter-spacing:.045em!important;margin:0 0 12px!important;
}
html body.ekh-enhanced:not(.ekh-home) #main .ekh-secondary-hero .ekh-secondary-hero-lead{
 max-width:47ch!important;font-size:15px!important;line-height:1.6!important;margin:0 0 18px!important;
}
html body.ekh-enhanced:not(.ekh-home) #main .ekh-secondary-hero .ekh-secondary-hero-link{
 display:inline-flex;align-items:center;gap:12px;min-height:44px;font-size:13px!important;line-height:1.5;
}
html body.ekh-enhanced:not(.ekh-home) #main .ekh-secondary-hero .ekh-secondary-hero-copy::before{
 inset:-42px -52px -30px;background:radial-gradient(ellipse at 30% 65%,rgba(20,20,20,.5),rgba(20,20,20,.3) 44%,transparent 76%);
}
@media(max-width:760px){
 html body.ekh-enhanced:not(.ekh-home) #main .ekh-secondary-hero .ekh-secondary-hero-copy{
  inset:auto auto max(72px,calc(env(safe-area-inset-bottom) + 48px)) 24px!important;width:calc(100% - 48px)!important;
 }
 html body.ekh-enhanced:not(.ekh-home) #main .ekh-secondary-hero h1#ekh-page-photo-title{
  font-size:clamp(28px,7.3vw,44px)!important;line-height:1.22!important;max-width:100%!important;margin-bottom:14px!important;
 }
 html body.ekh-enhanced:not(.ekh-home) #main .ekh-secondary-hero .ekh-secondary-hero-label{font-size:11px!important;margin-bottom:10px!important}
 html body.ekh-enhanced:not(.ekh-home) #main .ekh-secondary-hero .ekh-secondary-hero-lead{font-size:14px!important;margin-bottom:12px!important}
 html body.ekh-enhanced:not(.ekh-home) #main .ekh-secondary-hero .ekh-secondary-hero-copy::before{inset:-30px -28px -24px}
}
@media(max-height:540px) and (min-width:761px){
 html body.ekh-enhanced:not(.ekh-home) #main .ekh-secondary-hero .ekh-secondary-hero-copy{bottom:24px!important}
 html body.ekh-enhanced:not(.ekh-home) #main .ekh-secondary-hero h1#ekh-page-photo-title{font-size:34px!important;margin-bottom:8px!important}
 html body.ekh-enhanced:not(.ekh-home) #main .ekh-secondary-hero .ekh-secondary-hero-label{margin-bottom:6px!important}
}

html body.ekh-enhanced:not(.ekh-home) #main .ekh-secondary-hero-title-main{display:block;max-width:23ch;text-wrap:balance}
