/* Shared content styles. All selectors are scoped to protect each school's theme. */
.ep-layout-content{--ep-radius:24px;--ep-shadow:0 5px 20px rgba(25,43,55,.1);display:flex;flex-direction:column;gap:32px;padding:32px 6%;color:inherit;overflow-wrap:anywhere;line-height:1.75}
.ep-layout-content *{box-sizing:border-box}.ep-corners-0{--ep-radius:0px}.ep-corners-8{--ep-radius:8px}.ep-shadow-none{--ep-shadow:none}.ep-shadow-hard{--ep-shadow:0 14px 36px 3px rgba(25,43,55,.32)}.ep-shadow-mid{--ep-shadow:0 10px 28px 1px rgba(25,43,55,.2)}
.ep-layout-content .ep-text{min-width:0}.ep-layout-content h2{font-size:clamp(19px,2vw,27px);line-height:1.45;margin:0 0 12px;color:inherit}.ep-layout-content p{margin:0;line-height:1.4}.ep-layout-content .ep-paragraph-content{line-height:1.4}.ep-layout-content .ep-text u,.ep-layout-content .ep-description u{text-decoration:underline!important}.ep-layout-content ul{list-style:disc outside;margin:0;padding-left:24px}.ep-layout-content li{display:list-item;margin:0 0 8px}
.ep-layout-content .ep-content-list.ep-list-numbers{list-style:decimal outside;margin:0;padding-left:24px}
.ep-layout-content .ep-content-list.ep-list-hand{list-style:none;margin:0;padding-left:24px}
.ep-layout-content .ep-content-list.ep-list-hand>li{position:relative;list-style:none}
.ep-layout-content .ep-content-list.ep-list-hand>li:before{content:"";position:absolute;left:-22px;top:.32em;width:14px;height:14px;background-color:#004878;-webkit-mask-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBhcmlhLWhpZGRlbj0idHJ1ZSI+CiAgPHBhdGggZmlsbD0iIzAwMCIgZD0iTTQ4MCA5NmMxNy43IDAgMzIgMTQuMyAzMiAzMnMtMTQuMyAzMi0zMiAzMmwtMjA4IDAgMC02NCAyMDggMHpNMzIwIDI4OGMxNy43IDAgMzIgMTQuMyAzMiAzMnMtMTQuMyAzMi0zMiAzMmwtNjQgMGMtMTcuNyAwLTMyLTE0LjMtMzItMzJzMTQuMy0zMiAzMi0zMmw2NCAwem02NC02NGMwIDE3LjctMTQuMyAzMi0zMiAzMmwtNDggMGMtMTcuNyAwLTMyLTE0LjMtMzItMzJzMTQuMy0zMiAzMi0zMmw0OCAwYzE3LjcgMCAzMiAxNC4zIDMyIDMyek0yODggMzg0YzE3LjcgMCAzMiAxNC4zIDMyIDMycy0xNC4zIDMyLTMyIDMybC02NCAwYy0xNy43IDAtMzItMTQuMy0zMi0zMnMxNC4zLTMyIDMyLTMybDY0IDB6bS04OC05NmwuNiAwYy01LjQgOS40LTguNiAyMC4zLTguNiAzMiAwIDEzLjIgNCAyNS40IDEwLjggMzUuNi0yNC45IDguNy00Mi44IDMyLjUtNDIuOCA2MC40IDAgMTEuNyAzLjEgMjIuNiA4LjYgMzJsLTguNiAwQzcxLjYgNDQ4IDAgMzc2LjQgMCAyODhsMC02MS43YzAtNDIuNCAxNi45LTgzLjEgNDYuOS0xMTMuMWwxMS42LTExLjZDODIuNSA3Ny41IDExNS4xIDY0IDE0OSA2NGwyNyAwYzM1LjMgMCA2NCAyOC43IDY0IDY0bDAgODhjMCAyMi4xLTE3LjkgNDAtNDAgNDBzLTQwLTE3LjktNDAtNDBsMC01NmMwLTguOC03LjItMTYtMTYtMTZzLTE2IDcuMi0xNiAxNmwwIDU2YzAgMzkuOCAzMi4yIDcyIDcyIDcyeiIvPgo8L3N2Zz4K");-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:contain;mask-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBhcmlhLWhpZGRlbj0idHJ1ZSI+CiAgPHBhdGggZmlsbD0iIzAwMCIgZD0iTTQ4MCA5NmMxNy43IDAgMzIgMTQuMyAzMiAzMnMtMTQuMyAzMi0zMiAzMmwtMjA4IDAgMC02NCAyMDggMHpNMzIwIDI4OGMxNy43IDAgMzIgMTQuMyAzMiAzMnMtMTQuMyAzMi0zMiAzMmwtNjQgMGMtMTcuNyAwLTMyLTE0LjMtMzItMzJzMTQuMy0zMiAzMi0zMmw2NCAwem02NC02NGMwIDE3LjctMTQuMyAzMi0zMiAzMmwtNDggMGMtMTcuNyAwLTMyLTE0LjMtMzItMzJzMTQuMy0zMiAzMi0zMmw0OCAwYzE3LjcgMCAzMiAxNC4zIDMyIDMyek0yODggMzg0YzE3LjcgMCAzMiAxNC4zIDMyIDMycy0xNC4zIDMyLTMyIDMybC02NCAwYy0xNy43IDAtMzItMTQuMy0zMi0zMnMxNC4zLTMyIDMyLTMybDY0IDB6bS04OC05NmwuNiAwYy01LjQgOS40LTguNiAyMC4zLTguNiAzMiAwIDEzLjIgNCAyNS40IDEwLjggMzUuNi0yNC45IDguNy00Mi44IDMyLjUtNDIuOCA2MC40IDAgMTEuNyAzLjEgMjIuNiA4LjYgMzJsLTguNiAwQzcxLjYgNDQ4IDAgMzc2LjQgMCAyODhsMC02MS43YzAtNDIuNCAxNi45LTgzLjEgNDYuOS0xMTMuMWwxMS42LTExLjZDODIuNSA3Ny41IDExNS4xIDY0IDE0OSA2NGwyNyAwYzM1LjMgMCA2NCAyOC43IDY0IDY0bDAgODhjMCAyMi4xLTE3LjkgNDAtNDAgNDBzLTQwLTE3LjktNDAtNDBsMC01NmMwLTguOC03LjItMTYtMTYtMTZzLTE2IDcuMi0xNiAxNmwwIDU2YzAgMzkuOCAzMi4yIDcyIDcyIDcyeiIvPgo8L3N2Zz4K");mask-repeat:no-repeat;mask-position:center;mask-size:contain}
.ep-layout-content .ep-media{margin:0;min-width:0}.ep-layout-content .ep-media img,.ep-layout-content .ep-media video,.ep-layout-content .ep-media iframe{display:block;width:100%;max-width:100%;border:0;border-radius:var(--ep-radius);box-shadow:var(--ep-shadow);aspect-ratio:4/3;object-fit:cover;background:#edf2f6}
.ep-layout-content .ep-media video,.ep-layout-content .ep-media iframe{aspect-ratio:16/9;object-fit:contain}.ep-layout-content .ep-media iframe[src*="instagram.com"]{aspect-ratio:4/5;min-height:390px}.ep-layout-content figcaption{font-size:13px;padding:10px 2px;line-height:1.5}.ep-layout-content .ep-video-link{display:none!important}.ep-layout-content .ep-empty{padding:30px;text-align:center;color:#6f8190;background:#f4f7fa;border-radius:12px}
.ep-layout-content .ep-pair,.ep-layout-content .ep-run{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);gap:24px;align-items:center;min-width:0}.ep-layout-content .ep-description{padding:24px;border-radius:var(--ep-radius);background:#f3f6f8;box-shadow:var(--ep-shadow);min-width:0}
.ep-layout-content .ep-position-right{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}.ep-layout-content .ep-position-right>.ep-media{order:2}.ep-layout-content .ep-run>.ep-copy-group{order:1}.ep-layout-content .ep-run>.ep-media-group{order:0}.ep-layout-content .ep-run.ep-position-right>.ep-media-group{order:2}
.ep-layout-content .ep-copy-group,.ep-layout-content .ep-media-group{display:grid;gap:24px;min-width:0}.ep-layout-content .ep-position-top,.ep-layout-content .ep-position-bottom{display:flex;flex-direction:column;align-items:stretch}.ep-layout-content .ep-position-bottom>.ep-media{order:2}.ep-layout-content .ep-run.ep-position-bottom>.ep-media-group{order:2}.ep-layout-content .ep-position-top>.ep-media img,.ep-layout-content .ep-position-bottom>.ep-media img{aspect-ratio:21/9}
.ep-layout-content .ep-family-cards{background:#edf3f8;padding:22px;border-radius:var(--ep-radius);box-shadow:var(--ep-shadow)}.ep-layout-content .ep-family-cards .ep-description{background:transparent;box-shadow:none;padding:12px}.ep-layout-content .ep-run.ep-family-cards{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.ep-layout-content .ep-run.ep-family-cards>.ep-text,.ep-layout-content .ep-run.ep-family-cards>.ep-media{padding:18px;background:white;border-radius:var(--ep-radius)}
.ep-layout-content .ep-family-gallery .ep-description,.ep-layout-content .ep-family-editorial .ep-description{background:transparent;box-shadow:none;padding:12px 0}.ep-layout-content .ep-family-gallery>.ep-media img{aspect-ratio:16/9}.ep-layout-content .ep-run.ep-family-gallery{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.ep-layout-content .ep-run.ep-family-gallery>.ep-text{grid-column:1/-1}.ep-layout-content .ep-family-editorial{width:100%;max-width:100%;margin:0}.ep-layout-content .ep-run.ep-family-editorial{grid-template-columns:1fr;gap:32px}
.ep-layout-content .ep-family-spotlight{gap:0}.ep-layout-content .ep-family-spotlight .ep-description,.ep-layout-content .ep-run.ep-family-spotlight>.ep-copy-group{background:#eaf1f7;padding:28px;position:relative;z-index:1;box-shadow:var(--ep-shadow);border-radius:var(--ep-radius);margin-left:-24px}.ep-layout-content .ep-family-spotlight.ep-position-right .ep-description,.ep-layout-content .ep-run.ep-family-spotlight.ep-position-right>.ep-copy-group{margin-left:0;margin-right:-24px}
.ep-layout-content .ep-single-kind{grid-template-columns:1fr}.ep-layout-content .ep-run.ep-single-kind.ep-family-gallery,.ep-layout-content .ep-run.ep-single-kind.ep-family-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
.ep-layout-content .ep-image{position:relative;isolation:isolate}.ep-layout-content .ep-image figcaption{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;padding:20px;border-radius:var(--ep-radius);background:rgba(244,248,252,.82);backdrop-filter:blur(3px);color:#24323d;font-size:clamp(13px,1.25vw,22px);font-weight:500;line-height:1.6;opacity:0;transition:opacity .2s ease;pointer-events:none}.ep-layout-content .ep-image:hover figcaption,.ep-layout-content .ep-image:focus figcaption,.ep-layout-content .ep-image:focus-within figcaption{opacity:1}.ep-layout-content .ep-image:focus-visible{outline:2px solid #0874bc;outline-offset:4px;border-radius:var(--ep-radius)}@media(hover:none){.ep-layout-content .ep-image figcaption{inset:auto 0 0;opacity:1;padding:12px;font-size:13px;border-top-left-radius:0;border-top-right-radius:0}}@media(prefers-reduced-motion:reduce){.ep-layout-content .ep-image figcaption{transition:none}}
@media(max-width:600px){.ep-layout-content{padding:24px 5%;gap:24px}.ep-layout-content .ep-pair,.ep-layout-content .ep-run,.ep-layout-content .ep-run.ep-single-kind.ep-family-gallery,.ep-layout-content .ep-run.ep-single-kind.ep-family-cards{grid-template-columns:1fr;gap:18px}.ep-layout-content .ep-pair>.ep-media,.ep-layout-content .ep-run>.ep-media-group{order:0}.ep-layout-content .ep-position-bottom>.ep-media,.ep-layout-content .ep-run.ep-position-bottom>.ep-media-group{order:2}.ep-layout-content .ep-family-spotlight .ep-description,.ep-layout-content .ep-family-spotlight.ep-position-right .ep-description,.ep-layout-content .ep-run.ep-family-spotlight>.ep-copy-group,.ep-layout-content .ep-run.ep-family-spotlight.ep-position-right>.ep-copy-group{margin:0;padding:20px}.ep-layout-content .ep-description{padding:20px}.ep-layout-content .ep-position-top>.ep-media img,.ep-layout-content .ep-position-bottom>.ep-media img{aspect-ratio:4/3}}

/* Keep rendered content inside the iframe, including theme-defined text widths. */
.ep-layout-content{box-sizing:border-box;width:100%;max-width:100%;min-width:0}
.ep-layout-content .ep-pair,.ep-layout-content .ep-run,.ep-layout-content .ep-copy-group,.ep-layout-content .ep-media-group,.ep-layout-content .ep-description,.ep-layout-content .ep-text{max-width:100%;min-width:0}
.ep-layout-content .ep-text,.ep-layout-content .ep-text p,.ep-layout-content .ep-text h2,.ep-layout-content .ep-text ul,.ep-layout-content .ep-text li{width:auto;max-width:100%;white-space:normal;overflow-wrap:anywhere}
#epfuture-preview-content{box-sizing:border-box;width:100%;max-width:100%;min-width:0}
/* School themes can apply section { width:100vw; overflow-x:hidden }.
   Layout rows must size against their padded container, not the viewport. */
.ep-layout-content .ep-pair,.ep-layout-content .ep-run{width:100%;overflow:visible}
.ep-layout-content .ep-pair{height:auto;margin:0}
.ep-layout-content .ep-pair.ep-family-editorial{margin:0}
.ep-layout-content .ep-text{overflow:visible}

/* Media dimensions belong to the layout, never to the uploaded file.
   A separate frame also isolates school-theme img/video height and max-width rules. */
.ep-layout-content .ep-media{width:100%;max-width:100%;min-width:0;justify-self:stretch}
.ep-layout-content .ep-media-frame{position:relative;display:block;width:100%;max-width:100%;aspect-ratio:4/3;overflow:hidden;border-radius:var(--ep-radius);box-shadow:var(--ep-shadow);background:#edf2f6}
.ep-layout-content .ep-media-frame.ep-video-frame{aspect-ratio:16/9;background:#111827}
.ep-layout-content.ep-image-style-background .ep-image .ep-media-frame{background:#edf2f6}
.ep-layout-content.ep-image-style-no-background .ep-image .ep-media-frame{background:transparent}
.ep-layout-content.ep-image-style-no-background .ep-image .ep-media-frame>img{object-fit:contain!important}
.ep-layout-content .ep-media .ep-media-frame>img,
.ep-layout-content .ep-media .ep-media-frame>video,
.ep-layout-content .ep-media .ep-media-frame>iframe{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;aspect-ratio:auto!important;border-radius:0;box-shadow:none;object-fit:contain;object-position:center}
.ep-layout-content .ep-media .ep-media-frame>img{object-fit:cover}
.ep-layout-content .ep-position-top>.ep-media>.ep-media-frame:not(.ep-video-frame),
.ep-layout-content .ep-position-bottom>.ep-media>.ep-media-frame:not(.ep-video-frame){aspect-ratio:21/9}
.ep-layout-content .ep-family-gallery>.ep-media>.ep-media-frame:not(.ep-video-frame){aspect-ratio:16/9}
@media(max-width:600px){.ep-layout-content .ep-position-top>.ep-media>.ep-media-frame:not(.ep-video-frame),.ep-layout-content .ep-position-bottom>.ep-media>.ep-media-frame:not(.ep-video-frame){aspect-ratio:4/3}}

/* Layout families own their outer arrangement. Media position applies inside pairs,
   and must not turn a cards/gallery/editorial run into a stacked flex column. */
.ep-layout-content .ep-run.ep-family-cards,
.ep-layout-content .ep-run.ep-family-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.ep-layout-content .ep-run.ep-family-cards{padding:0;background:transparent;border-radius:0;box-shadow:none}
.ep-layout-content .ep-run.ep-family-cards>.ep-text,
.ep-layout-content .ep-run.ep-family-cards>.ep-media{padding:20px;background:#eff3f6;box-shadow:var(--ep-shadow);border-radius:var(--ep-radius)}
.ep-layout-content .ep-run.ep-family-gallery>.ep-text{grid-column:1/-1}
.ep-layout-content .ep-run.ep-family-gallery>.ep-media,
.ep-layout-content .ep-run.ep-family-cards>.ep-media{order:0;grid-column:auto}
.ep-layout-content .ep-run.ep-family-gallery>.ep-media>.ep-media-frame:not(.ep-video-frame),
.ep-layout-content .ep-run.ep-family-cards>.ep-media>.ep-media-frame:not(.ep-video-frame){aspect-ratio:4/3}
.ep-layout-content .ep-run.ep-family-editorial{display:grid;grid-template-columns:minmax(0,1fr);max-width:100%;margin-inline:auto;gap:24px}
.ep-layout-content .ep-run.ep-family-editorial>.ep-media{order:0}
.ep-layout-content .ep-run.ep-family-editorial>.ep-media>.ep-media-frame:not(.ep-video-frame){aspect-ratio:16/9}
.ep-layout-content .ep-pair.ep-family-editorial{max-width:100%}
.ep-layout-content .ep-pair.ep-family-editorial .ep-description p,
.ep-layout-content .ep-pair.ep-family-editorial .ep-description li{font-size:14px;line-height:1.4}
.ep-layout-content .ep-pair.ep-family-split{align-items:start}
.ep-layout-content .ep-run.ep-family-split:not(.ep-single-kind){grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.ep-layout-content .ep-run.ep-family-stack>.ep-copy-group{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);align-items:start}
@media(max-width:600px){
.ep-layout-content .ep-run.ep-family-cards,.ep-layout-content .ep-run.ep-family-gallery,
.ep-layout-content .ep-run.ep-family-split:not(.ep-single-kind),
.ep-layout-content .ep-run.ep-family-stack>.ep-copy-group{grid-template-columns:minmax(0,1fr)}
}

/* A described card and a standalone card must allocate the same image width.
   Both use half the row minus the shared gap, with 20px media padding. */
.ep-layout-content .ep-pair.ep-family-cards{grid-template-columns:repeat(2,minmax(0,1fr));padding:0;gap:24px;align-items:center}
.ep-layout-content .ep-pair.ep-family-cards>.ep-media{padding:20px}
.ep-layout-content .ep-pair.ep-family-cards>.ep-description{padding:20px}
.ep-layout-content .ep-pair.ep-family-cards>.ep-media>.ep-media-frame:not(.ep-video-frame){aspect-ratio:4/3}
@media(max-width:600px){
.ep-layout-content .ep-pair.ep-family-cards{grid-template-columns:minmax(0,1fr);gap:18px}
}

/* Shared horizontal geometry for described rows and standalone runs.
   Described split rows previously used 1:1.6 while standalone split used 1:1. */
.ep-layout-content .ep-pair.ep-family-split,
.ep-layout-content .ep-run.ep-family-split,
.ep-layout-content .ep-run.ep-family-split:not(.ep-single-kind),
.ep-layout-content .ep-pair.ep-family-gallery,
.ep-layout-content .ep-run.ep-family-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.ep-layout-content .ep-pair.ep-family-spotlight,
.ep-layout-content .ep-run.ep-family-spotlight{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0}
.ep-layout-content .ep-pair.ep-family-gallery>.ep-media>.ep-media-frame:not(.ep-video-frame){aspect-ratio:4/3}
@media(max-width:600px){
.ep-layout-content .ep-pair.ep-family-split,
.ep-layout-content .ep-run.ep-family-split,
.ep-layout-content .ep-run.ep-family-split:not(.ep-single-kind),
.ep-layout-content .ep-pair.ep-family-gallery,
.ep-layout-content .ep-run.ep-family-gallery,
.ep-layout-content .ep-pair.ep-family-spotlight,
.ep-layout-content .ep-run.ep-family-spotlight{grid-template-columns:minmax(0,1fr);gap:18px}
}

/* Standalone text spans the scene, as depicted in the layout thumbnail. */
.ep-layout-content .ep-run.ep-text-only{display:grid;grid-template-columns:minmax(0,1fr);width:100%}
.ep-layout-content .ep-run>.ep-text{grid-column:1/-1;justify-self:stretch;width:100%}
.ep-layout-content .ep-text,.ep-layout-content .ep-paragraph-content{display:block;float:none;min-width:0;width:100%;max-width:100%}
.ep-layout-content .ep-paragraph-content p,.ep-layout-content .ep-paragraph-content div{float:none;width:100%;max-width:100%;margin-inline:0;white-space:normal}
.ep-layout-content .ep-text>h1,.ep-layout-content .ep-text>h2,.ep-layout-content .ep-text>h3{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.ep-layout-content .ep-media-frame{isolation:isolate}
.ep-layout-content .ep-description{overflow-wrap:anywhere}

.ep-layout-content .ep-run.ep-family-stack>.ep-copy-group{grid-template-columns:minmax(0,1fr)}

/* Balanced media and copy: compact images, generous copy, consistent source ratio. */
.ep-layout-content{gap:clamp(32px,3vw,56px);padding-block:clamp(28px,3vw,48px)}
.ep-layout-content .ep-pair.ep-family-split,
.ep-layout-content .ep-pair.ep-family-cards,
.ep-layout-content .ep-pair.ep-family-gallery,
.ep-layout-content .ep-pair.ep-family-spotlight,
.ep-layout-content .ep-run.ep-family-split:not(.ep-single-kind),
.ep-layout-content .ep-run.ep-family-spotlight:not(.ep-single-kind){grid-template-columns:minmax(0,min(38%,560px)) minmax(0,1fr);gap:clamp(24px,3vw,48px);align-items:center}
.ep-layout-content .ep-pair.ep-position-right.ep-family-split,
.ep-layout-content .ep-pair.ep-position-right.ep-family-cards,
.ep-layout-content .ep-pair.ep-position-right.ep-family-gallery,
.ep-layout-content .ep-pair.ep-position-right.ep-family-spotlight,
.ep-layout-content .ep-run.ep-position-right.ep-family-split:not(.ep-single-kind),
.ep-layout-content .ep-run.ep-position-right.ep-family-spotlight:not(.ep-single-kind){grid-template-columns:minmax(0,1fr) minmax(0,min(38%,560px))}
.ep-layout-content .ep-description{padding:clamp(20px,2vw,32px)}
.ep-layout-content .ep-family-spotlight .ep-description,
.ep-layout-content .ep-run.ep-family-spotlight>.ep-copy-group{margin-left:-40px}
.ep-layout-content .ep-family-spotlight.ep-position-right .ep-description,
.ep-layout-content .ep-run.ep-family-spotlight.ep-position-right>.ep-copy-group{margin-left:0;margin-right:-40px}
.ep-layout-content .ep-pair.ep-family-stack{gap:24px;align-items:stretch}
.ep-layout-content .ep-pair.ep-family-stack>.ep-media,
.ep-layout-content .ep-run.ep-family-stack>.ep-media-group{width:100%;max-width:640px;align-self:center;margin-inline:auto}
.ep-layout-content .ep-pair.ep-family-editorial{max-width:100%;grid-template-columns:minmax(0,min(38%,360px)) minmax(0,1fr);gap:32px;align-items:center}
.ep-layout-content .ep-pair.ep-family-editorial.ep-position-right{grid-template-columns:minmax(0,1fr) minmax(0,min(38%,360px))}
.ep-layout-content .ep-run.ep-family-editorial{max-width:100%}
.ep-layout-content .ep-run.ep-family-editorial>.ep-media{max-width:100%;margin-inline:0}
.ep-layout-content .ep-run.ep-family-cards.ep-single-kind:not(.ep-text-only),
.ep-layout-content .ep-run.ep-family-gallery.ep-single-kind:not(.ep-text-only){max-width:1180px;margin-inline:auto;gap:28px}
.ep-layout-content .ep-run.ep-family-cards>.ep-media{padding:16px}
.ep-layout-content .ep-pair.ep-family-cards>.ep-media{padding:16px}
.ep-layout-content .ep-media>.ep-media-frame:not(.ep-video-frame){aspect-ratio:4/3}
@media(max-width:700px){
.ep-layout-content{gap:28px;padding-block:24px}
.ep-layout-content .ep-pair.ep-family-split,.ep-layout-content .ep-pair.ep-family-cards,
.ep-layout-content .ep-pair.ep-family-gallery,.ep-layout-content .ep-pair.ep-family-spotlight,
.ep-layout-content .ep-pair.ep-family-editorial,
.ep-layout-content .ep-pair.ep-position-right.ep-family-split,.ep-layout-content .ep-pair.ep-position-right.ep-family-cards,
.ep-layout-content .ep-pair.ep-position-right.ep-family-gallery,.ep-layout-content .ep-pair.ep-position-right.ep-family-spotlight,
.ep-layout-content .ep-pair.ep-position-right.ep-family-editorial,
.ep-layout-content .ep-run.ep-family-split:not(.ep-single-kind),.ep-layout-content .ep-run.ep-family-spotlight:not(.ep-single-kind),
.ep-layout-content .ep-run.ep-position-right.ep-family-split:not(.ep-single-kind),.ep-layout-content .ep-run.ep-position-right.ep-family-spotlight:not(.ep-single-kind){grid-template-columns:minmax(0,1fr);gap:20px}
.ep-layout-content .ep-family-spotlight .ep-description,.ep-layout-content .ep-family-spotlight.ep-position-right .ep-description,
.ep-layout-content .ep-run.ep-family-spotlight>.ep-copy-group,.ep-layout-content .ep-run.ep-family-spotlight.ep-position-right>.ep-copy-group{margin:0;padding:20px}
.ep-layout-content .ep-pair>.ep-media,.ep-layout-content .ep-run>.ep-media-group{order:0}
.ep-layout-content .ep-run.ep-family-cards.ep-single-kind:not(.ep-text-only),
.ep-layout-content .ep-run.ep-family-gallery.ep-single-kind:not(.ep-text-only){grid-template-columns:minmax(0,1fr);gap:20px}
}

.ep-layout-content .ep-position-top>.ep-media>.ep-media-frame:not(.ep-video-frame),
.ep-layout-content .ep-position-bottom>.ep-media>.ep-media-frame:not(.ep-video-frame),
.ep-layout-content .ep-run.ep-family-editorial>.ep-media>.ep-media-frame:not(.ep-video-frame){aspect-ratio:4/3}
.ep-layout-content .ep-run.ep-family-cards>.ep-media,
.ep-layout-content .ep-run.ep-family-gallery>.ep-media{max-width:560px;justify-self:center}
.ep-layout-content .ep-run.ep-family-split.ep-single-kind:not(.ep-text-only),
.ep-layout-content .ep-run.ep-family-spotlight.ep-single-kind:not(.ep-text-only){max-width:640px;margin-inline:auto;grid-template-columns:minmax(0,1fr);gap:24px}

@media(min-width:701px){.ep-layout-content .ep-pair.ep-family-spotlight,.ep-layout-content .ep-run.ep-family-spotlight:not(.ep-single-kind){gap:16px}}

/* Clip image pixels with overflow/radius, never clip the frame's own shadow. */
.ep-layout-content .ep-media,.ep-layout-content .ep-media-group{overflow:visible}
.ep-layout-content .ep-media-frame{clip-path:none;box-shadow:var(--ep-shadow);overflow:hidden;border-radius:var(--ep-radius)}
/* Negative margins must be allowed to expand BOTH mirrored text panels.
   max-width:100% otherwise prevents the right-hand overlap from reaching media. */
@media(min-width:701px){
.ep-layout-content .ep-pair.ep-family-spotlight>.ep-description,
.ep-layout-content .ep-run.ep-family-spotlight:not(.ep-single-kind)>.ep-copy-group{width:auto;max-width:none;min-width:0;position:relative;z-index:1;margin-left:-40px;margin-right:0}
.ep-layout-content .ep-pair.ep-family-spotlight.ep-position-right>.ep-description,
.ep-layout-content .ep-run.ep-family-spotlight.ep-position-right:not(.ep-single-kind)>.ep-copy-group{margin-left:0;margin-right:-40px}
}
@media(max-width:700px){
.ep-layout-content .ep-pair.ep-family-spotlight>.ep-description,
.ep-layout-content .ep-run.ep-family-spotlight>.ep-copy-group{width:100%;max-width:100%;margin:0}
}
/* 2026-11-13: blue editorial surfaces and responsive gallery collection.
   The same scoped tokens drive text panels and transparent-image backing. */
.ep-layout-content{
 --ep-surface:#eaf3fc;
 --ep-surface-line:#cbdff1;
 --ep-ink:#173d63;
 --ep-accent:#246da5;
 --ep-shadow:0 5px 18px rgba(23,61,99,.10);
 gap:clamp(30px,3.4vw,56px);
 padding:clamp(28px,3.2vw,52px) clamp(20px,7.8vw,150px);
}
.ep-layout-content.ep-shadow-none{--ep-shadow:none}
.ep-layout-content.ep-shadow-mid{--ep-shadow:0 10px 28px rgba(23,61,99,.18)}
.ep-layout-content.ep-shadow-hard{--ep-shadow:0 14px 32px 2px rgba(23,61,99,.28)}
.ep-layout-content .ep-description,
.ep-layout-content .ep-family-spotlight .ep-description,
.ep-layout-content .ep-run.ep-family-spotlight>.ep-copy-group,
.ep-layout-content .ep-run.ep-family-cards>.ep-text,
.ep-layout-content .ep-run.ep-family-cards>.ep-media,
.ep-layout-content .ep-pair.ep-family-cards{background:var(--ep-surface)}
.ep-layout-content .ep-description{padding:clamp(22px,2.4vw,36px);border:1px solid var(--ep-surface-line)}
.ep-layout-content .ep-family-gallery .ep-description,
.ep-layout-content .ep-family-editorial .ep-description{border:0;background:transparent;box-shadow:none}
.ep-layout-content .ep-run.ep-family-cards>.ep-text{padding:28px;border:1px solid var(--ep-surface-line)}
.ep-layout-content .ep-pair.ep-family-cards{padding:0;background:transparent;box-shadow:none}
.ep-layout-content .ep-pair.ep-family-cards>.ep-description{background:var(--ep-surface);box-shadow:var(--ep-shadow)}
.ep-layout-content .ep-pair.ep-family-cards>.ep-media{background:transparent}
/* Editorial stays plain; card borders in other families remain independent. */
.ep-layout-content .ep-run.ep-family-editorial>.ep-text{padding-top:0;border:0}
.ep-layout-content .ep-run.ep-family-editorial>.ep-media{max-width:100%}
.ep-layout-content .ep-pair.ep-family-stack>.ep-description{max-width:900px;align-self:center;width:100%}
.ep-layout-content .ep-family-spotlight .ep-description{box-shadow:var(--ep-shadow)}

/* Gallery is a real collection grid, including images with descriptions.
   A full-width introduction remains full width, regardless of media count. */
.ep-layout-content.ep-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 24px;align-items:start}
.ep-layout-content.ep-gallery-columns-1{grid-template-columns:minmax(0,1fr)}
.ep-layout-content.ep-gallery-columns-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.ep-layout-content.ep-gallery-grid>.ep-run.ep-family-gallery{display:contents}
.ep-layout-content.ep-gallery-grid>.ep-run>.ep-text{grid-column:1/-1;order:0;margin:0 0 8px;padding:0;background:transparent}
.ep-layout-content.ep-gallery-grid .ep-run>.ep-media{width:100%;max-width:none;justify-self:stretch;margin:0;order:0}
.ep-layout-content.ep-gallery-grid>.ep-pair.ep-family-gallery{
 display:flex;flex-direction:column;gap:0;align-items:stretch;
 width:100%;max-width:none;margin:0;background:transparent;box-shadow:none;
}
.ep-layout-content.ep-gallery-grid>.ep-pair.ep-family-gallery>.ep-media{order:0;width:100%;max-width:none;margin:0}
.ep-layout-content.ep-gallery-grid>.ep-pair.ep-family-gallery>.ep-description{
 order:1;width:100%;max-width:100%;margin:0;padding:22px 0 0;
 border:0;background:transparent;box-shadow:none;
}
.ep-layout-content.ep-gallery-grid .ep-media-frame:not(.ep-video-frame){aspect-ratio:4/3}
.ep-layout-content.ep-gallery-grid .ep-description h1,
.ep-layout-content.ep-gallery-grid .ep-description h2{font-size:clamp(19px,1.7vw,25px);line-height:1.35}
.ep-layout-content.ep-gallery-grid>.ep-empty{grid-column:1/-1}

/* Background is deliberately on the frame, behind source alpha pixels.
   Both modes keep the same fitting/geometry: switching style never crops differently. */
.ep-layout-content.ep-image-style-background .ep-image>.ep-media-frame{
 background:var(--ep-surface);box-shadow:var(--ep-shadow);
}
.ep-layout-content .ep-image>.ep-media-frame>img{background:transparent!important;box-shadow:none!important;object-fit:contain!important}
.ep-layout-content.ep-image-style-no-background .ep-image,
.ep-layout-content.ep-image-style-no-background .ep-image>.ep-media-frame{
 background:transparent!important;box-shadow:none!important;border:0!important;filter:none!important;
}
.ep-layout-content.ep-image-style-no-background .ep-image>img{background:transparent!important;box-shadow:none!important;filter:none!important}
/* The selected media shadow belongs to the frame, never a second outer card. */
.ep-layout-content .ep-run.ep-family-cards>.ep-image{background:transparent;box-shadow:none}
.ep-layout-content .ep-image figcaption{background:rgba(243,248,255,.94);color:var(--ep-ink)}
@media(min-width:701px) and (max-width:1000px){
 .ep-layout-content.ep-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ep-layout-content.ep-gallery-columns-1{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:700px){
 .ep-layout-content{padding:24px 5%;gap:28px}
 .ep-layout-content.ep-gallery-grid{grid-template-columns:minmax(0,1fr);gap:28px}
 .ep-layout-content.ep-gallery-grid>.ep-pair.ep-family-gallery{gap:0}
 .ep-layout-content.ep-gallery-grid>.ep-pair>.ep-description{padding-top:18px}
}

/* Shared copy rhythm. Editorial uses the same outer content edges as all families. */
.ep-layout-content .ep-family-editorial,
.ep-layout-content .ep-pair.ep-family-editorial,
.ep-layout-content .ep-run.ep-family-editorial{width:100%;max-width:100%;margin-inline:0}
.ep-layout-content .ep-paragraph-content,
.ep-layout-content .ep-text p,
.ep-layout-content .ep-description p,
.ep-layout-content .ep-description li,
.ep-layout-content .ep-content-list li{line-height:1.4}
/* Layout headings own this gap, including older markup with inline margin:0.
   Direct children exclude headings inside pasted body content and image captions. */
.ep-layout-content .ep-text>:is(h1,h2,h3,h4,h5,h6){margin-bottom:20px!important}
.ep-layout-content .ep-paragraph-content p+p{margin-top:14px}

/* Showcase is a separate family. Groups preserve source order and remain in flow. */
.ep-layout-content.ep-showcase-grid{display:flex;flex-direction:column;gap:clamp(28px,3vw,48px)}
.ep-layout-content.ep-showcase-grid>.ep-showcase-run,
.ep-layout-content.ep-showcase-grid>.ep-showcase-feature{position:relative;inset:auto;float:none;width:100%;max-width:100%;min-width:0;margin:0;box-sizing:border-box;overflow:visible}
.ep-layout-content.ep-showcase-grid>.ep-showcase-run{display:grid;gap:clamp(18px,2vw,28px);align-items:start}
.ep-layout-content.ep-showcase-grid>.ep-showcase-media{grid-template-columns:repeat(3,minmax(0,1fr))}
.ep-layout-content.ep-showcase-grid>.ep-showcase-copy{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.ep-layout-content.ep-showcase-grid>.ep-showcase-copy-single{grid-template-columns:minmax(0,1fr)}
.ep-layout-content.ep-showcase-grid>.ep-showcase-copy>.ep-text,
.ep-layout-content.ep-showcase-grid .ep-showcase-description{padding:clamp(22px,2.4vw,36px);background:var(--ep-surface);border:1px solid var(--ep-surface-line);border-radius:var(--ep-radius);box-shadow:var(--ep-shadow);min-width:0;box-sizing:border-box}
.ep-layout-content.ep-showcase-grid>.ep-showcase-copy-single>.ep-text{padding:0;border:0;background:transparent;box-shadow:none}
.ep-layout-content.ep-showcase-grid>.ep-showcase-feature{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.9fr);gap:clamp(22px,3vw,44px);align-items:center}
.ep-layout-content.ep-showcase-grid>.ep-showcase-feature-right{grid-template-columns:minmax(0,1.9fr) minmax(0,1fr)}
.ep-layout-content.ep-showcase-grid>.ep-showcase-feature-right>.ep-media{grid-column:2;grid-row:1}
.ep-layout-content.ep-showcase-grid>.ep-showcase-feature-right>.ep-showcase-description{grid-column:1;grid-row:1}
.ep-layout-content.ep-showcase-grid .ep-showcase-description{width:auto;margin:0}
.ep-layout-content.ep-showcase-grid .ep-content-list li{margin-bottom:12px;line-height:1.4}
.ep-layout-content.ep-showcase-grid .ep-content-list li:last-child{margin-bottom:0}
.ep-layout-content.ep-showcase-grid .ep-media{padding:0;margin:0;align-self:center}
@media(min-width:701px) and (max-width:1000px){.ep-layout-content.ep-showcase-grid>.ep-showcase-media{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
 .ep-layout-content.ep-showcase-grid>.ep-showcase-media,
 .ep-layout-content.ep-showcase-grid>.ep-showcase-copy,
 .ep-layout-content.ep-showcase-grid>.ep-showcase-feature{grid-template-columns:minmax(0,1fr);gap:22px}
 .ep-layout-content.ep-showcase-grid>.ep-showcase-feature-right>.ep-media,
 .ep-layout-content.ep-showcase-grid>.ep-showcase-feature-right>.ep-showcase-description{grid-column:auto;grid-row:auto}
 .ep-layout-content.ep-showcase-grid>.ep-showcase-feature>.ep-media{max-width:480px;justify-self:center}
}

/* Align the boxes in side-by-side image and description rows. */
@media(min-width:701px){
 .ep-layout-content .ep-pair:is(.ep-position-left,.ep-position-right):not(.ep-family-gallery,.ep-family-stack):has(>.ep-image)>:is(.ep-image,.ep-description),
 .ep-layout-content.ep-showcase-grid>.ep-showcase-feature:has(>.ep-image)>:is(.ep-image,.ep-showcase-description){
  align-self:start;
 }
}
