/* WIDM Story Galleries v0.1.7
   Story first, uninterrupted editorial photography second.
   Typography, colours, widths and CTA follow the WIDM main pages (Phase B, 24.11.2026):
   headlines in the Elementor global font Butler Ultra Light, Raleway for text/UI. */
.widm-story-shell,.widm-story-shell *{box-sizing:border-box}
.widm-story-shell{width:100%;max-width:none;margin:0;padding:0;background:#fff;color:#111;font-family:Raleway,Arial,sans-serif}
.widm-story-shell .widm-story-article{margin:0!important;padding:0!important}
.widm-story-shell figure{margin:0!important;padding:0!important}
.widm-story-shell img{border:0!important;border-radius:0!important;box-shadow:none!important;filter:none!important}
.widm-story-kicker{font:500 13px/1.5 Raleway,Arial,sans-serif!important;letter-spacing:.13em;text-transform:uppercase;color:#444;margin:0 0 22px!important}
.widm-story-hero h1,.widm-story-gallery-caption,.widm-story-endcap h2,.widm-story-intro-copy h2,.widm-story-intro-copy h3{font-family:"Butler Ultra Light",Georgia,serif!important;font-weight:400!important;letter-spacing:0!important}

/* Hero: text 5 / photo 7, like the Hochzeiten opener. */
.widm-story-hero-band{background:#f7f4f2;padding:80px 40px 88px}
.widm-story-hero{max-width:1360px;margin:0 auto;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(40px,4.5vw,72px);align-items:center;text-align:left}
.widm-story-hero:not(.widm-story-hero--with-photo){display:block;max-width:1000px;text-align:center}
.widm-story-hero-copy{min-width:0}
.widm-story-hero-image a{display:block;cursor:zoom-in;outline-offset:4px}
.widm-story-hero-image a:focus-visible{outline:2px solid #111}
.widm-story-hero-image img{display:block;width:100%;height:auto;max-height:680px;object-fit:contain;margin-left:auto}
.widm-story-hero h1{font-size:clamp(56px,5.2vw,75px)!important;line-height:1.02!important;color:#111!important;margin:0 0 22px!important}
.widm-story-subtitle{font:400 22px/1.45 Raleway,Arial,sans-serif!important;color:#444!important;margin:0!important}
.widm-story-date{font:400 14px/1.5 Raleway,Arial,sans-serif!important;color:#66615e!important;margin:19px 0 0!important}

/* A single reading flow: paragraph order comes from the WordPress editor. */
.widm-story-intro{max-width:860px;margin:0 auto;padding:91px 40px 104px}
.widm-story-intro-copy{max-width:760px;margin:0 auto;text-align:left}
.widm-story-intro-copy p{font:400 18px/1.75 Raleway,Arial,sans-serif!important;color:#444!important;margin:0 0 24px!important}
.widm-story-intro-copy p:last-child{margin-bottom:0!important}
.widm-story-intro-copy h2,.widm-story-intro-copy h3{font-size:clamp(34px,3.4vw,48px)!important;line-height:1.1!important;color:#111!important;margin:42px 0 20px!important}
.widm-story-intro-copy a{color:#111!important;text-underline-offset:4px}

/* Gallery: Portfolio content width, equal-height pairs, landscape solo accents. */
.widm-story-gallery{max-width:1264px;margin:0 auto 112px;padding:0 40px}
.widm-story-gallery-intro{text-align:center;margin:0 auto 56px;max-width:820px}
.widm-story-gallery-intro .widm-story-kicker{margin-bottom:10px!important}
.widm-story-gallery-caption{font-size:48px!important;line-height:1.1!important;color:#111;margin:0!important}
.widm-story-photo-grid{columns:3;column-gap:12px}
.widm-story-photo{display:block;break-inside:avoid;page-break-inside:avoid;margin:0 0 12px!important;padding:0!important;line-height:0}
.widm-story-photo a{display:block;cursor:zoom-in;outline-offset:4px}
.widm-story-photo a:focus-visible{outline:2px solid #111}
.widm-story-photo img{display:block;width:100%;max-width:100%;height:auto;object-fit:contain;transition:none!important}
.widm-story-gallery--editorial .widm-story-photo-grid{columns:auto;display:block}
.widm-story-row{display:flex;gap:28px;margin:0 0 28px}
.widm-story-row .widm-story-photo{flex:var(--widm-ratio,1.5) 1 0;min-width:0;margin:0!important}
.widm-story-row .widm-story-photo img{width:100%!important;height:auto!important}
.widm-story-row--solo .widm-story-photo{flex:0 1 auto;width:100%;text-align:center}
.widm-story-row--solo .widm-story-photo img{width:auto!important;max-width:100%;max-height:820px;margin:0 auto}

/* Closing invitation: Accent Rose with primary button, like Home/Paarfotografie (operator choice 24.11.2026). */
.widm-story-endcap{background:#111;color:#fff;text-align:center;padding:104px 40px 112px}
.widm-story-endcap-content{max-width:820px;margin:0 auto}
.widm-story-endcap .widm-story-kicker{color:#d6d4cb!important}
.widm-story-endcap h2{font-size:clamp(44px,4.4vw,60px)!important;line-height:1.08!important;color:#fff!important;margin:0 0 26px!important}
.widm-story-endcap-content>p:not(.widm-story-kicker){font:400 18px/1.7 Raleway,Arial,sans-serif!important;color:#d6d4cb!important;margin:0 auto 33px!important;max-width:640px}
.widm-story-cta{display:inline-block;border-bottom:1px solid #fff;padding:0 0 5px;color:#fff!important;text-decoration:none!important;text-transform:uppercase;font:500 13.5px/1.5 Raleway,Arial,sans-serif!important;letter-spacing:.1em}
.widm-story-cta:hover,.widm-story-cta:focus-visible{color:#e69f9d!important;border-color:#e69f9d}
.widm-story-endcap--rose{background:#e69f9d;color:#111}
.widm-story-endcap--rose .widm-story-kicker{color:#444!important}
.widm-story-endcap--rose h2{color:#111!important}
.widm-story-endcap--rose .widm-story-endcap-content>p:not(.widm-story-kicker){color:#333!important}
.widm-story-endcap--rose .widm-story-cta{background:#111;color:#fff!important;border:0;padding:17px 28px;font-size:14px!important;line-height:1!important;letter-spacing:.1em}
.widm-story-endcap--rose .widm-story-cta:hover,.widm-story-endcap--rose .widm-story-cta:focus-visible{background:#333;color:#fff!important}
.widm-story-endcap--rose .widm-story-cta:focus-visible{outline:2px solid #111;outline-offset:3px}

/* Native dialog, independent of third-party gallery services. */
.widm-story-viewer{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0!important;padding:58px 62px;border:0;border-radius:0;background:#111;color:#fff;overscroll-behavior:contain}
.widm-story-viewer::backdrop{background:rgba(0,0,0,.93)}
.widm-story-viewer[open]{display:flex;align-items:center;justify-content:center}
.widm-story-viewer img{display:block;max-width:100%;max-height:calc(100dvh - 116px);width:auto;height:auto;object-fit:contain}
.widm-story-viewer button{position:absolute;z-index:2;border:0!important;background:rgba(15,15,15,.5)!important;color:#fff!important;cursor:pointer;font-size:36px;line-height:1;border-radius:0!important}
.widm-story-viewer .widm-story-close{top:12px;right:18px;padding:3px 13px;font-size:35px}
.widm-story-viewer .widm-story-prev{left:8px;top:50%;transform:translateY(-50%);padding:18px 12px}
.widm-story-viewer .widm-story-next{right:8px;top:50%;transform:translateY(-50%);padding:18px 12px}
.widm-story-counter{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);font:400 13px/1.4 Raleway,Arial,sans-serif}

@media(max-width:1000px){
.widm-story-hero-band{padding:64px 28px 72px}
.widm-story-hero{gap:36px}
.widm-story-hero-image img{max-height:520px}
.widm-story-hero h1{font-size:clamp(46px,5.6vw,56px)!important}
.widm-story-intro{padding:80px 28px 92px}
.widm-story-gallery{padding:0 28px;margin-bottom:88px}
.widm-story-row{gap:18px;margin-bottom:18px}
}
@media(max-width:760px){
.widm-story-hero-band{padding:48px 20px 56px}
.widm-story-hero{display:flex;flex-direction:column;gap:32px;align-items:stretch}
.widm-story-hero:not(.widm-story-hero--with-photo){display:block}
.widm-story-hero-copy{text-align:center}
.widm-story-hero-image img{max-height:none}
.widm-story-hero h1{font-size:40px!important;line-height:1.04!important;margin-bottom:16px!important}
.widm-story-subtitle{font-size:19px!important}
.widm-story-intro{padding:60px 20px 72px}
.widm-story-intro-copy p{font-size:17px!important}
.widm-story-intro-copy h2,.widm-story-intro-copy h3{font-size:34px!important}
.widm-story-gallery{padding:0 20px;margin-bottom:72px}
.widm-story-gallery-intro{margin-bottom:32px}
.widm-story-gallery-caption{font-size:34px!important}
.widm-story-row{display:block;margin:0}
.widm-story-row .widm-story-photo{margin:0 0 16px!important}
.widm-story-row--solo .widm-story-photo img{width:100%!important;max-height:none}
.widm-story-endcap{padding:72px 22px 80px}
.widm-story-endcap h2{font-size:36px!important}
}
@media(max-width:520px){
.widm-story-kicker{font-size:12px!important;letter-spacing:.11em}
.widm-story-viewer{padding:64px 20px}
.widm-story-viewer img{max-height:calc(100dvh - 128px)}
}
@media(prefers-reduced-motion:reduce){.widm-story-shell *{scroll-behavior:auto!important}}

/* Optional related story link, using the existing editorial typography. */
.widm-story-related{text-align:center;margin:-64px auto 64px;padding:0 20px;font:400 18px/1.6 Raleway,Arial,sans-serif}
.widm-story-related a{color:#111!important;text-decoration:underline;text-underline-offset:4px}
.widm-story-related a:focus-visible{outline:2px solid #111;outline-offset:4px}
@media(max-width:760px){.widm-story-related{margin:-32px auto 40px;font-size:17px}}
