/* Magazine Story: shared by native Gutenberg patterns and the project frontend. */
.ke-project-single, .editor-styles-wrapper {
 --ke-story-space:clamp(var(--wp--preset--spacing--2xl,48px),7vw,var(--wp--preset--spacing--5xl,128px));
 --ke-story-gap:clamp(var(--wp--preset--spacing--lg,24px),3vw,var(--wp--preset--spacing--3xl,64px));
}
.ke-project-single__heading { text-align:left; max-width:1200px; margin:0 auto var(--wp--preset--spacing--xl,32px); }
.ke-project-single__heading h1 { margin:var(--wp--preset--spacing--md,16px) 0 0; font-size:clamp(3rem,7vw,6rem); }
.ke-project-single__heading .ke-eyebrow { margin-top:var(--wp--preset--spacing--lg,24px); text-transform:uppercase; }
.ke-project-hero { max-width:1200px; margin:0 auto; }
.ke-project-hero .ke-project-cover { width:auto; max-width:100%; height:auto; max-height:72svh; margin:auto; object-fit:contain; }
.ke-project-story-intro { max-width:64ch; margin:var(--ke-story-space) auto; padding-inline:var(--wp--preset--spacing--lg,24px); }
.ke-project-story-intro:has(.ke-lead:empty), .ke-project-story-intro:not(:has(.ke-lead)) { display:none; }
.ke-project-story-intro .ke-lead { font-family:var(--wp--preset--font-family--body); font-size:clamp(1.05rem,1.5vw,1.25rem); line-height:1.8; margin:0; }
.ke-project-content { max-width:1200px; }
.ke-story { margin-block:var(--ke-story-space); }
.ke-story.wp-block-columns { display:grid; gap:var(--ke-story-gap); align-items:start; }
.ke-story.wp-block-columns > .wp-block-column { min-width:0; margin:0; }
.ke-story-spread { grid-template-columns:1.15fr .9fr 1.15fr; }
.ke-story-spread > .wp-block-column:nth-child(2) { align-self:center; }
.ke-story-spread > .wp-block-column:nth-child(3) { margin-top:var(--ke-story-gap); }
.ke-story-text { max-width:42ch; }
.ke-story-text h2 { font-size:clamp(1.8rem,3vw,2.8rem); line-height:1.15; margin:0 0 var(--wp--preset--spacing--lg,24px); }
.ke-story-text p { line-height:1.8; margin:0 0 var(--wp--preset--spacing--md,16px); }
.ke-story-image figure { margin:0; }
.ke-story-image img, .ke-project-content .ke-story-image img { display:block; width:100%; height:auto; max-height:none; object-fit:contain; }
.ke-story-image .ke-lightbox-trigger { width:100%; height:auto; }
.ke-story-quote, .ke-project-content > .wp-block-quote { max-width:30ch; margin:var(--ke-story-space) auto; padding:var(--wp--preset--spacing--xl,32px) 0; border:0; text-align:center; font-family:var(--wp--preset--font-family--heading); font-size:clamp(1.8rem,4vw,3.8rem); line-height:1.25; }
.ke-story-quote::before { content:''; display:block; width:48px; height:1px; margin:0 auto var(--wp--preset--spacing--xl,32px); background:var(--wp--preset--color--champagne); }
.ke-story-quote p { margin:0; }
.ke-story-quote cite { display:block; font:normal 1rem var(--wp--preset--font-family--body); margin-top:var(--wp--preset--spacing--lg,24px); }
.ke-story-wide { max-width:100%; }
.ke-story-wide .ke-story-image img, .ke-project-content .ke-story-wide .ke-story-image img { max-height:85svh; width:auto; max-width:100%; margin:auto; }
.ke-story-details { grid-template-columns:1fr 1fr; max-width:85%; margin-left:auto; }
.ke-story-details > .wp-block-column:last-child { padding-top:var(--ke-story-gap); }
.ke-story-text-image.wp-block-columns { grid-template-columns:.8fr 1.2fr; align-items:center; }
.ke-story-text-image .ke-story-text { margin-inline:auto; }
.ke-story-closing { grid-template-columns:1.5fr 1fr; }
.ke-story-closing > .wp-block-column:last-child { align-self:end; }
.ke-project-details { max-width:760px; padding-block:var(--wp--preset--spacing--xl,32px); font-size:.9rem; border-top:1px solid var(--wp--preset--color--line); }
.ke-project-cta { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:var(--wp--preset--spacing--xl,32px); margin-block:var(--ke-story-space); padding-block:0; }
.ke-project-cta p { margin:0; }
@media(min-width:701px) { .ke-project-cta > .ke-button { order:-1; } }
@media(max-width:700px) {
 .ke-project-single { padding-top:var(--wp--preset--spacing--xl,32px); }
 .ke-project-single__heading h1 { font-size:clamp(2.6rem,12vw,4rem); }
 .ke-project-hero .ke-project-cover { max-height:75svh; }
 .ke-story.wp-block-columns { grid-template-columns:minmax(0,1fr); gap:var(--wp--preset--spacing--xl,32px); }
 .ke-story-spread > .wp-block-column:nth-child(3) { margin-top:0; width:88%; justify-self:end; }
 .ke-story-text { max-width:100%; }
 .ke-story-details { max-width:100%; }
 .ke-story-details > .wp-block-column { width:85%; }
 .ke-story-details > .wp-block-column:last-child { justify-self:end; padding-top:0; }
 .ke-story-closing > .wp-block-column:last-child { width:88%; justify-self:end; }
 .ke-story-text-image .ke-story-text { margin:0; }
 .ke-project-cta { flex-direction:column; }
}

/* Portrait-led story variants; never infer subject or crop from the media. */
.ke-story-image-text.wp-block-columns { grid-template-columns:1.2fr .8fr; align-items:center; }
.ke-story-image-text .ke-story-text { margin-inline:auto; }
.ke-story-text h2 { font-family:var(--wp--preset--font-family--heading); font-style:italic; }
.ke-story-text h2::after { content:''; display:block; width:var(--wp--preset--spacing--xl,32px); height:1px; background:var(--wp--preset--color--champagne); margin-top:var(--wp--preset--spacing--md,16px); }
.ke-project-content .ke-story-quote:not(:has(p:not(:empty), cite:not(:empty))) { display:none; }
.ke-project-related { max-width:1200px; }
@media(max-width:700px) {
 .ke-story-image-text.wp-block-columns { grid-template-columns:minmax(0,1fr); }
 .ke-story-image-text .ke-story-text { margin:0; }
}

/* Structured editorial colophon; project narrative remains in Gutenberg. */
.ke-project-credits { max-width:var(--wp--style--global--content-size,1200px); margin:var(--ke-story-space) auto; padding:var(--wp--preset--spacing--xl,32px) var(--wp--preset--spacing--lg,24px); border-top:1px solid var(--wp--preset--color--line); }
.ke-project-credits > h2 { font-family:var(--wp--preset--font-family--heading); font-size:2rem; margin:0 0 var(--wp--preset--spacing--xl,32px); }
.ke-project-credits__groups { display:grid; grid-template-columns:repeat(var(--ke-credit-columns),minmax(0,1fr)); gap:var(--wp--preset--spacing--2xl,48px); }
.ke-project-credits h3 { font:600 .75rem var(--wp--preset--font-family--body); letter-spacing:.12em; text-transform:uppercase; margin:0 0 var(--wp--preset--spacing--md,16px); }
.ke-project-credits ul { list-style:none; padding:0; margin:0; }
.ke-project-credits li { font-family:var(--wp--preset--font-family--heading); font-size:1.4rem; line-height:1.6; overflow-wrap:anywhere; }
.ke-project-credits a { color:inherit; text-decoration:underline; text-decoration-color:var(--wp--preset--color--champagne); text-underline-offset:.2em; }
.ke-project-credits a:hover { text-decoration-thickness:2px; }
.ke-project-credits a:focus-visible { outline:2px solid currentColor; outline-offset:4px; }
@media(max-width:700px) { .ke-project-credits__groups { grid-template-columns:minmax(0,1fr); } }
