.cp-gallery{color:var(--cp-ink,#1c1c1b);font-family:var(--cp-font-body,Arial,Helvetica,sans-serif);min-width:0;max-width:100%;background:transparent}.cp-gallery .cp-gallery-heading{font-family:var(--cp-font-heading,Georgia,"Times New Roman",serif);font-weight:400;font-size:clamp(2rem,3.3vw,3.2rem);line-height:1.12;letter-spacing:-.025em;margin:0 0 24px;text-transform:none}.cp-gallery-heading::before{content:"";display:block;width:58px;height:2px;background:var(--cp-red,#a92c2b);margin-bottom:24px}.cp-gallery .cp-gallery-intro{color:var(--cp-muted,#62635f);max-width:680px;font-size:1.05rem;line-height:1.7;margin:0 0 36px;white-space:normal;overflow:visible;overflow-wrap:anywhere;text-overflow:clip}.cp-gallery .cp-gallery-track{display:grid;grid-template-columns:repeat(var(--cpg-desktop),minmax(0,1fr));gap:var(--cpg-gap);max-width:100%;min-width:0}.cp-gallery .cp-gallery-item{min-width:0}.cp-gallery .cp-gallery-link{display:block;color:inherit}.cp-gallery .cp-gallery-item img{display:block;width:100%;height:auto;aspect-ratio:var(--cpg-ratio);object-fit:cover;border-radius:0}.cp-gallery .cp-gallery-controls{display:none;gap:8px;align-items:center;justify-content:flex-end;margin-top:12px}.cp-gallery .cp-gallery-controls[hidden]{display:none}.cp-gallery .cp-gallery-controls button{font:inherit;color:var(--cp-ink,#1c1c1b);background:transparent;border:0;border-radius:0;padding:0;min-width:44px;min-height:44px;cursor:pointer}.cp-gallery :focus-visible{outline:2px solid var(--cp-red,#a92c2b);outline-offset:3px}.cp-gallery-lightbox{box-sizing:border-box;position:fixed;inset:0;width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:24px;border:0;background:rgba(28,28,27,.98);color:var(--cp-paper,#f8f7f4);font-family:var(--cp-font-body,Arial,Helvetica,sans-serif)}.cp-gallery-lightbox::backdrop{background:var(--cp-ink,#1c1c1b)}.cp-gallery-lightbox .cpg-stage{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px}.cp-gallery-lightbox img{display:block;max-width:100%;max-height:calc(100dvh - 150px);object-fit:contain;width:auto;height:auto}.cp-gallery-lightbox button{background:transparent;border:1px solid #62635f;color:var(--cp-paper,#f8f7f4);padding:10px 16px;font:inherit;border-radius:0;cursor:pointer}.cp-gallery-lightbox button:focus-visible{outline:2px solid #f8f7f4;outline-offset:3px}.cp-gallery-lightbox .cpg-close{position:absolute;right:16px;top:16px}.cp-gallery-lightbox .cpg-nav{display:flex;align-items:center;gap:20px}.cp-gallery-lightbox .cpg-status{min-height:1.5em}.cp-gallery-lightbox:not([open]){display:none}@media(max-width:1023px){.cp-gallery .cp-gallery-track{grid-template-columns:repeat(var(--cpg-tablet),minmax(0,1fr))}}@media(max-width:767px){.cp-gallery .cp-gallery-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scroll-padding-inline:0;padding:4px 0 10px}.cp-gallery .cp-gallery-item{flex:0 0 86%;scroll-snap-align:start}.cp-gallery .cp-gallery-controls:not([hidden]){display:flex}}

.cp-gallery .cp-gallery-counter{font-size:14px;color:var(--cp-muted,#62635f);min-width:48px;text-align:center;font-variant-numeric:tabular-nums}.cp-gallery .cp-gallery-controls button:disabled{opacity:.3;cursor:default}
@media(max-width:767px){
.cp-gallery .cp-gallery-track{position:relative;box-sizing:border-box;width:var(--cpg-mobile-width,100vw);max-width:none;margin-left:var(--cpg-mobile-left,calc((100% - 100vw)/2));align-items:flex-start;padding:4px 0;scrollbar-width:none;-ms-overflow-style:none}
.cp-gallery .cp-gallery-track::-webkit-scrollbar{display:none}
.cp-gallery.cp-gallery-ratio-original .cp-gallery-item img{width:auto;height:auto;max-width:100%;max-height:70vh;max-height:min(70svh,640px);aspect-ratio:auto;object-fit:contain;margin-inline:auto}
}

@media(min-width:1280px){.cp-gallery .cp-gallery-track{grid-template-columns:repeat(var(--cpg-wide,var(--cpg-desktop)),minmax(0,1fr))}}

@media(max-width:700px){.cp-gallery .cp-gallery-heading{margin-bottom:20px}.cp-gallery .cp-gallery-heading::before{margin-bottom:20px}.cp-gallery .cp-gallery-intro{font-size:1rem;margin-bottom:28px}}

/* Optional Single row layout. Existing grid rules remain unchanged. */
.cp-gallery.cp-gallery-single .cp-gallery-track{display:flex;position:relative;box-sizing:border-box;min-width:0;max-width:none;width:var(--cpg-row-width,100%);margin-left:0;margin-right:0;padding:4px 0;gap:12px;align-items:flex-start;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;-ms-overflow-style:none}
.cp-gallery.cp-gallery-single .cp-gallery-track::-webkit-scrollbar{display:none}
.cp-gallery.cp-gallery-single .cp-gallery-item{flex:0 0 min(var(--cpg-row-cap,480px),calc((100% - 36px) / 3.5));min-width:0;scroll-snap-align:start}
.cp-gallery.cp-gallery-single .cp-gallery-item img{display:block;width:100%;height:auto;max-width:100%;max-height:none;aspect-ratio:var(--cpg-row-ratio,4 / 3);object-fit:cover;margin:0;border-radius:0}
.cp-gallery.cp-gallery-single .cp-gallery-controls:not([hidden]){display:flex}

@media(max-width:1023px) and (min-width:768px){.cp-gallery.cp-gallery-single .cp-gallery-item{flex-basis:min(var(--cpg-row-cap,480px),calc((100% - 24px) / 2.5))}}
@media(max-width:767px){.cp-gallery.cp-gallery-single .cp-gallery-item{flex-basis:min(var(--cpg-row-cap,480px),86%)}}

.cp-gallery.cp-gallery-single .cp-gallery-track .cp-gallery-link:focus-visible{outline-offset:-3px}

/* Section background is painted outside the shell without increasing layout width. */
.cp-gallery .cp-gallery-frame{position:relative;min-width:0;box-sizing:border-box}
.cp-gallery.cp-gallery-dark{background:var(--cp-ink,#1c1c1b);color:var(--cp-paper,#f8f7f4);padding-block:clamp(56px,6vw,90px);box-shadow:0 0 0 100vmax var(--cp-ink,#1c1c1b);clip-path:inset(0 -100vmax)}
.cp-gallery.cp-gallery-dark .cp-gallery-heading,.cp-gallery.cp-gallery-dark .cp-gallery-intro{color:var(--cp-paper,#f8f7f4)}
.cp-gallery.cp-gallery-dark .cp-gallery-item img{box-sizing:border-box;border:1px solid var(--cp-line,#deddd8)}
.cp-gallery.cp-gallery-dark .cp-gallery-counter{color:var(--cp-line,#deddd8)}
.cp-gallery.cp-gallery-full .cp-gallery-frame{width:var(--cpg-frame-width,100%);max-width:none;margin-left:var(--cpg-frame-left,0)}
.cp-gallery.cp-gallery-full .cp-gallery-track{width:100%;margin:0;padding-inline:18px;scroll-padding-inline:18px}
.cp-gallery.cp-gallery-full .cp-gallery-controls{position:absolute;inset:0;pointer-events:none;justify-content:space-between;margin:0;padding:0 24px}
.cp-gallery.cp-gallery-full .cp-gallery-controls button{pointer-events:auto;align-self:center;width:44px;height:48px;background:var(--cp-ink,#1c1c1b);color:var(--cp-paper,#f8f7f4);border:1px solid var(--cp-line,#deddd8)}
.cp-gallery.cp-gallery-full .cp-gallery-counter{position:absolute;right:24px;bottom:10px;padding:4px 8px;background:var(--cp-ink,#1c1c1b);color:var(--cp-paper,#f8f7f4)}
.cp-gallery.cp-gallery-dark :focus-visible{outline-color:var(--cp-paper,#f8f7f4)}
.cp-gallery.cp-gallery-join{margin-top:0}
.cp-story-band:has(+ .cp-gallery.cp-gallery-dark.cp-gallery-join){margin-bottom:0}
@media(max-width:767px){.cp-gallery.cp-gallery-full .cp-gallery-controls{padding-inline:22px}}

/* Complete slides and dedicated arrow rails: Dark + Single row + Full width only. */
.cp-gallery.cp-gallery-rails .cp-gallery-frame{display:grid;grid-template-columns:64px minmax(0,1fr) 64px;margin-right:0;padding:0;border:0;isolation:isolate}
.cp-gallery.cp-gallery-rails .cp-gallery-track{grid-column:2;grid-row:1;width:100%;max-width:100%;min-width:0;margin:0;padding:4px 0;scroll-padding:0;gap:12px}
.cp-gallery.cp-gallery-rails .cp-gallery-item{flex:0 0 calc((100% - (var(--cpg-visible,3) - 1)*12px)/var(--cpg-visible,3));scroll-snap-align:start;scroll-snap-stop:always}
.cp-gallery.cp-gallery-rails .cp-gallery-controls:not([hidden]){display:contents}
.cp-gallery.cp-gallery-rails .cp-gallery-controls button{position:absolute;top:50%;transform:translateY(-50%);margin:0;align-self:auto;width:44px;height:48px;box-sizing:border-box}
.cp-gallery.cp-gallery-rails .cp-gallery-controls button[data-step="-1"]{left:10px}
.cp-gallery.cp-gallery-rails .cp-gallery-controls button[data-step="1"]{right:10px}
.cp-gallery.cp-gallery-rails .cp-gallery-counter{right:10px;bottom:-28px;background:transparent}
.cp-gallery.cp-gallery-dark.cp-gallery-join{position:relative;clip-path:inset(calc(0px - var(--cpg-join-gap,0px)) -100vmax 0)}
.cp-gallery.cp-gallery-dark.cp-gallery-join::after{content:"";position:absolute;pointer-events:none;left:0;right:0;top:calc(0px - var(--cpg-join-gap,0px));height:var(--cpg-join-gap,0px);background:var(--cp-ink,#1c1c1b);box-shadow:0 0 0 100vmax var(--cp-ink,#1c1c1b);clip-path:inset(0 -100vmax)}
@media(max-width:767px){
 .cp-gallery.cp-gallery-rails .cp-gallery-frame{grid-template-columns:50px minmax(0,1fr) 50px}
 .cp-gallery.cp-gallery-rails .cp-gallery-item{--cpg-visible:1}
 .cp-gallery.cp-gallery-rails .cp-gallery-controls button[data-step="-1"]{left:3px}
 .cp-gallery.cp-gallery-rails .cp-gallery-controls button[data-step="1"]{right:3px}
}

/* Match the shared dark section introduction and mobile padding. */
.cp-gallery.cp-gallery-dark .cp-gallery-intro{color:var(--cp-dark-muted,#d0cfca)}
@media(max-width:700px){.cp-gallery.cp-gallery-dark{padding-block:48px}}
