/* NHD3273: one generous presentation frame, independently readable text. */
body[data-layout="3273"]{--frame-edge:max(clamp(18px,4vw,88px),calc((100vw - 2048px)/2));--reading-edge:var(--frame-edge);--edge-max:2048px;--lg-gutter:var(--frame-edge)}
body[data-layout="3273"] .life-guide{--lg-gutter:var(--frame-edge)}
body[data-layout="3273"] main :is(.pd-wrap,.lg-wrap){width:calc(100% - 2 * var(--frame-edge));max-width:none;margin-inline:auto;padding-inline:0}
body[data-layout="3273"] main .wrap{width:calc(100% - 2 * var(--frame-edge));max-width:none;margin-inline:auto}
body[data-layout="3273"]:is([data-site="south-end"],[data-site="beacon-hill"]) main .section{width:100%;max-width:none;margin-inline:0;padding-inline:0}
body[data-layout="3273"][data-portfolio-site="back-bay"] main :is(.section,.back-bay-panorama){width:calc(100% - 2 * var(--frame-edge));max-width:none;margin-inline:auto;padding-inline:0}
body[data-layout="3273"]:is([data-portfolio-site="downtown"],[data-portfolio-site="waterfront"]) main .content{width:calc(100% - 2 * var(--frame-edge));max-width:none;margin-inline:auto;padding-inline:0}
body[data-layout="3273"][data-portfolio-site="seaport"] main .section{width:calc(100% - 2 * var(--frame-edge));max-width:none;margin-inline:auto;padding-inline:0}
body[data-layout="3273"][data-portfolio-site="citywide"] main .section{width:100%;max-width:none;padding-inline:var(--frame-edge)!important}
body[data-layout="3273"] main :is(.arrival-editorial,.arrival-credit){width:calc(100% - 2 * var(--frame-edge));max-width:none;margin-inline:auto}
body[data-layout="3273"] .back-bay-panorama{grid-template-columns:1.35fr 1fr;gap:clamp(28px,4vw,72px)}
body[data-layout="3273"] main :is(h1,h2,h3,p){text-wrap:pretty}
body[data-layout="3273"] main :is(h1,h2,h3){text-wrap:balance}
body[data-layout="3273"] main :is(.pd-wrap,.lg-wrap,.wrap,.content) p{max-width:68ch}
body[data-layout="3273"] main .pd-bio-row p{max-width:64ch}
/* Keep the full-bleed arrival, and enlarge what follows it. */
body[data-layout="3273"][data-design="3226"] .arrival-editorial{gap:clamp(28px,4vw,72px)}
body[data-layout="3273"] .back-bay-panorama img{width:100%;height:auto;max-height:none}
/* Life stories are editorial pairs, not subgridded directory cards. */
body[data-layout="3273"] .life-guide .pd-grid:has(>.pd-local-story){display:flex;flex-direction:column;gap:0;margin-top:26px}
body[data-layout="3273"] .life-guide .pd-local-story{display:grid!important;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);grid-template-rows:auto!important;grid-row:auto!important;grid-column:auto!important;grid-template-areas:'photo copy';gap:clamp(28px,4vw,72px);align-items:center!important;width:100%;padding:40px 0;border-top:1px solid #173a4333;background:transparent;box-shadow:none}
body[data-layout="3273"] .life-guide .pd-local-story:nth-child(even){grid-template-areas:'copy photo';grid-template-columns:minmax(0,1fr) minmax(0,1.1fr)}
body[data-layout="3273"] .life-guide .pd-local-story>figure{grid-area:photo!important;grid-row:auto!important;grid-column:auto!important;margin:0;width:100%}
body[data-layout="3273"] .life-guide .pd-local-story .story-copy{grid-area:copy;display:flex;flex-direction:column;align-items:flex-start;gap:18px;min-width:0;max-width:65ch}
body[data-layout="3273"] .life-guide .pd-local-story .story-copy>*{margin:0;grid-row:auto;grid-column:auto;width:auto}
body[data-layout="3273"] .life-guide .pd-local-story .story-copy h3{font:400 clamp(32px,3.1vw,52px)/1.12 'Instrument Serif',Georgia,serif;max-width:24ch}
body[data-layout="3273"] .life-guide .pd-local-story img{width:100%;height:auto;aspect-ratio:auto;object-fit:contain;margin:0;max-height:none}
body[data-layout="3273"] .life-guide .pd-local-story figcaption{font:11px/1.6 'DM Sans',Arial,sans-serif;min-height:0;padding-top:9px;margin:0;max-width:85ch}
body[data-layout="3273"] .life-guide .pd-local-story figcaption small{display:block;margin-top:4px}
body[data-layout="3273"] .life-guide .story-copy details{font-size:15px;line-height:1.7;width:100%}
body[data-layout="3273"] .life-guide .story-copy details p{margin-top:14px}
body[data-layout="3273"] .life-guide .story-copy>a{align-self:flex-start;max-width:100%;margin-top:4px}
body[data-layout="3273"] .life-guide .lg-hero{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);min-height:0}
body[data-layout="3273"] .life-guide .lg-hero-copy{padding:clamp(32px,4vw,80px)}
body[data-layout="3273"] .life-guide .lg-hero figure{height:auto;min-height:0;display:flex;flex-direction:column;justify-content:center}
body[data-layout="3273"] .life-guide .lg-hero figure img{flex:0 0 auto;width:100%;height:auto;min-height:0;max-height:none;object-fit:contain}
body[data-layout="3273"] .life-guide .lg-hero figcaption{flex:none}
body[data-layout="3273"] .life-guide .lg-hero h1{font-size:clamp(46px,4.6vw,80px)!important;max-width:15ch!important}
body[data-layout="3273"] .life-guide .lg-section{padding-block:clamp(38px,4.5vw,72px)}
body[data-layout="3273"] .life-guide .lg-venue-list{gap:0 clamp(30px,4vw,72px)}
body[data-layout="3273"] .life-guide .lg-venue{padding:28px 0 32px}
body[data-layout="3273"] .life-guide .lg-moments{gap:clamp(24px,3vw,52px)}
body[data-layout="3273"] .life-guide .life-area-grid>article{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:clamp(28px,4vw,72px);grid-template-rows:auto!important;align-items:center!important}
body[data-layout="3273"] .life-guide .life-area-grid>article>figure{align-self:center}
body[data-layout="3273"] .life-guide .life-area-grid>article img{display:block;height:auto;max-height:none;width:100%;aspect-ratio:auto;object-fit:contain}
body[data-layout="3273"] .life-guide .life-area-grid>article>.photo-align-body{display:block!important;flex:none}
/**** Waterfront: an intermediate, measured photographic scale. ****/
body[data-layout="3273"] .waterfront-flag{width:calc(100% - 2 * var(--frame-edge));max-width:none;margin:48px auto;grid-template-columns:minmax(0,1.25fr) minmax(0,.9fr);gap:clamp(28px,4vw,64px);align-items:center;background:transparent}
body[data-layout="3273"] .waterfront-flag>div{padding:0;max-width:49ch}
body[data-layout="3273"] .waterfront-flag img{display:block;width:100%;height:auto;max-height:none;object-fit:contain}
body[data-layout="3273"] .waterfront-flag h2{font-size:clamp(34px,3.4vw,54px);text-wrap:balance}
/**** South End: an unmistakable photographic entrance, preserving warm colors. ****/
body[data-layout="3273"] .south-arrival{padding:0;margin:0;background:#f6f0e7;color:#563c31}
body[data-layout="3273"] .south-welcome{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);min-height:660px;align-items:center}
body[data-layout="3273"] .south-welcome-copy{padding:clamp(32px,4vw,80px);min-width:0}
body[data-layout="3273"][data-design="3226"] .south-welcome h1{font:400 clamp(56px,6.4vw,98px)/1.02 'Instrument Serif',Georgia,serif!important;letter-spacing:-.025em!important;color:#563c31!important;margin:0 0 28px;max-width:10ch;text-wrap:balance}
body[data-layout="3273"] .south-welcome-copy p{font:400 17px/1.7 'DM Sans',Arial,sans-serif;max-width:39ch;margin:0 0 28px;color:#563c31}
body[data-layout="3273"] .south-welcome figure{margin:0;min-width:0;align-self:center}
body[data-layout="3273"] .south-welcome figure img{display:block;width:100%;height:auto;max-height:none;aspect-ratio:auto;object-fit:contain}
body[data-layout="3273"] .south-welcome figcaption{font:11px/1.5 'DM Sans',Arial,sans-serif;padding:10px 18px;color:#635850}
body[data-layout="3273"] .south-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px}
body[data-layout="3273"] .south-actions a{min-height:44px}
body[data-layout="3273"] .south-actions .south-search{display:inline-flex;justify-content:center;padding:15px 22px;background:#563c31;color:white;font:600 14px/1.4 'DM Sans',Arial,sans-serif;text-decoration:none;min-height:50px}
body[data-layout="3273"] .south-detail{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1fr) minmax(0,.8fr);gap:clamp(28px,4vw,72px);align-items:center;width:calc(100% - 2 * var(--frame-edge));margin:auto;padding:64px 0}
body[data-layout="3273"] .south-detail figure{margin:0;min-width:0}
body[data-layout="3273"] .south-detail figure img{display:block;width:100%;height:auto;max-height:none}
body[data-layout="3273"] .south-detail figure figcaption{font:11px/1.6 'DM Sans',Arial,sans-serif;margin-top:9px}
body[data-layout="3273"] .south-detail h2{font:400 clamp(34px,3.8vw,58px)/1.08 'Instrument Serif',Georgia,serif;margin:0 0 24px}
body[data-layout="3273"] .south-detail p{font:400 16px/1.75 'DM Sans',Arial,sans-serif;max-width:47ch;margin:0 0 22px}
body[data-layout="3273"] .south-detail a{color:inherit;text-underline-offset:5px;display:inline-flex;min-height:44px;align-items:center}
@media(min-width:801px){body[data-layout="3273"] .life-guide .lg-hero figure:has(img[src*="hero-home"]){height:680px;overflow:hidden}body[data-layout="3273"] .life-guide .lg-hero figure img[src*="hero-home"]{height:100%;object-fit:cover;object-position:50% 52%;flex:1 1 0}}
@media(max-width:900px){body[data-layout="3273"] .south-welcome{min-height:0;grid-template-columns:1fr 1.15fr}body[data-layout="3273"][data-design="3226"] .south-welcome h1{font-size:clamp(48px,6.4vw,68px)!important}.south-welcome-copy{padding:32px!important}body[data-layout="3273"] .south-detail{grid-template-columns:1fr 1.2fr}.south-detail .south-detail-door{display:none}body[data-layout="3273"] .life-guide .lg-hero h1{font-size:clamp(42px,5vw,56px)!important}}
@media(max-width:700px){body[data-layout="3273"]{--frame-edge:20px}body[data-layout="3273"] .back-bay-panorama,body[data-layout="3273"] .waterfront-flag,body[data-layout="3273"] .arrival-editorial{grid-template-columns:1fr;gap:26px}body[data-layout="3273"] .waterfront-flag{margin:36px auto}body[data-layout="3273"] .life-guide .pd-local-story,body[data-layout="3273"] .life-guide .pd-local-story:nth-child(even){display:flex!important;flex-direction:column;align-items:stretch!important;padding:28px 0;gap:24px}body[data-layout="3273"] .life-guide .pd-local-story .story-copy{width:100%;max-width:none;gap:16px}body[data-layout="3273"] .life-guide .lg-hero{display:flex;flex-direction:column}.life-guide .lg-hero figure{order:-1}body[data-layout="3273"] .life-guide .lg-hero-copy{padding:30px 20px 34px}body[data-layout="3273"] .life-guide .lg-hero h1{font-size:44px!important;max-width:16ch!important}.life-guide .lg-hero figure img{height:auto!important}body[data-layout="3273"] .life-guide .life-area-grid>article,body[data-layout="3273"] .life-guide .life-area-grid>article.photo-align-card{display:flex!important;flex-direction:column;gap:24px}body[data-layout="3273"] .life-guide .lg-venue-list,body[data-layout="3273"] .life-guide .lg-day-grid,body[data-layout="3273"] .life-guide .lg-moments{grid-template-columns:1fr}body[data-layout="3273"] .south-welcome{display:flex;flex-direction:column;min-height:0;align-items:stretch}body[data-layout="3273"] .south-welcome figure{order:-1;width:100%}body[data-layout="3273"] .south-welcome-copy{padding:26px 20px 34px!important}body[data-layout="3273"][data-design="3226"] .south-welcome h1{font-size:55px!important;max-width:12ch;margin-bottom:20px}body[data-layout="3273"] .south-welcome-copy p{font-size:16px;margin-bottom:22px}body[data-layout="3273"] .south-detail{grid-template-columns:1fr;gap:26px;padding:42px 0}body[data-layout="3273"] .south-detail .south-detail-door{display:block;max-width:340px;margin:auto}body[data-layout="3273"] .south-actions{gap:10px 20px}.south-actions .south-search{font-size:13px!important;padding:13px 18px!important}}
@media(max-width:350px){body[data-layout="3273"]{--frame-edge:16px}body[data-layout="3273"] .life-guide .lg-hero h1{font-size:39px!important}body[data-layout="3273"][data-design="3226"] .south-welcome h1{font-size:48px!important}body[data-layout="3273"] .south-actions{gap:8px 16px}}

body[data-layout="3273"] .life-place-directory{margin-top:22px;border-top:1px solid #173a4333;border-bottom:1px solid #173a4333;padding:0 0 14px}body[data-layout="3273"] .life-place-directory>summary{font:600 15px/1.6 "DM Sans",Arial,sans-serif;padding:18px 0;cursor:pointer;min-height:48px}body[data-layout="3273"] .life-place-directory .pd-map-list{margin-top:0}

body[data-layout="3273"] main :is(form,.form-grid,.form-grid>label,form input,form select,form textarea,form details){min-width:0;max-width:100%;box-sizing:border-box}body[data-layout="3273"] .life-guide .pd-local-story img{max-height:620px;width:auto;max-width:100%;height:auto;margin-inline:auto}body[data-layout="3273"] .life-guide .pd-local-story>figure{justify-self:stretch}

body[data-layout="3273"] main form.form{grid-template-columns:minmax(0,1fr)}body[data-layout="3273"] main .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:700px){body[data-layout="3273"] main .form-grid{grid-template-columns:minmax(0,1fr)}}

/* Explicit nested frame wins over prior editorial-theme --ed-frame cap. */
body[data-layout="3273"]:is([data-site="south-end"],[data-site="beacon-hill"]) main .section > .wrap{width:calc(100% - 2 * var(--frame-edge))!important;max-width:none!important;margin-inline:auto!important;padding-inline:0!important}

/* Wide team photographs retain full head-and-torso context at every frame width. */
body[data-layout="3273"] .team-mini .portrait-pair .portrait-frame{height:auto!important;aspect-ratio:auto!important;align-self:start}
body[data-layout="3273"] .team-mini .portrait-pair .portrait-frame img{display:block;width:100%;height:auto!important;max-height:none;object-fit:contain;transform:none!important}
