/* Presentation is implemented with the Strupczewscy theme and client overrides. */
/* Shared vendor credit on the dark site. */
.e-nekrologi{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;width:100%;margin:36px auto;text-align:center;color:var(--muted,#c3c3bb)}
.e-nekrologi>a{display:inline-flex;align-items:center;justify-content:center;margin-inline:auto}
.e-nekrologi .e-nekrologi-logo{display:block;max-width:177px;width:100%;height:auto;margin-inline:auto;filter:brightness(0) invert(1)}

/* BB presentation follows the existing charcoal, gold and local type system. */
.bb-obituaries#tresc{padding-bottom:0;margin-inline:auto}
.bb-obituaries>.container{padding-bottom:40px}
.bb-obituaries>.container p{font-size:17px;line-height:1.75}
.bb-obituaries .subhero{padding-bottom:32px}.bb-obituaries .bb-archive-header{border:0}
.bb-obituaries .subhero>p{max-width:58ch}
.bb-obituary-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
.bb-obituary-card{min-width:0;border:28px solid transparent;border-image-source:var(--bb-frame-image);border-image-slice:48;border-image-width:28px;border-image-repeat:stretch;padding:4px 12px;text-align:center}
.bb-obituary-card>a{display:flex;height:100%;flex-direction:column;padding-block:24px}
.bb-card-image{overflow:hidden;aspect-ratio:1;width:210px;max-width:100%;margin-inline:auto}
.bb-obituary-picture{width:100%;height:100%;object-fit:cover}
.bb-obituary-picture--symbol{object-fit:contain;filter:brightness(0) saturate(100%) invert(82%) sepia(15%) saturate(586%) hue-rotate(3deg) brightness(89%) contrast(88%)}
.bb-obituary-picture--symbol[src*="/strupczewscy-core/assets/nekrologi/"]{filter:none}
.bb-framed-picture{display:block;position:relative;width:100%;height:100%;padding:22px}
.bb-picture-frame{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.bb-card-body{padding-top:24px}
.bb-card-body h2{font-size:clamp(30px,2.8vw,40px);line-height:1.15;margin-bottom:16px;overflow-wrap:anywhere}
.bb-card-body p{margin-bottom:12px}
.bb-card-body .single-nekrolog__date{font-size:16px}
.bb-card-body .text-link{margin-top:12px;font-size:16px;min-height:44px}
.bb-card-body .bb-demo-notice{font-size:14px;line-height:1.6;margin-bottom:20px}
.bb-obituary-card>a:hover h2{color:var(--gold)}
.bb-demo-notice{padding:16px 20px;border-left:3px solid var(--gold);background:var(--surface);color:var(--ink)}
.bb-single-breadcrumb{padding-block:18px 8px;margin-bottom:8px;font-size:15px;flex-wrap:wrap;line-height:1.6}.bb-single-breadcrumb [aria-current="page"]{overflow-wrap:anywhere}
.bb-obituary{max-width:1024px;margin-inline:auto}
.bb-obituary-heading{display:block;text-align:center;padding-block:8px 12px}
.bb-obituary-art{aspect-ratio:1;overflow:hidden;width:320px;max-width:100%;margin:24px auto 28px}
.bb-deceased h1{font-size:clamp(40px,4vw,64px);line-height:1.1;overflow-wrap:anywhere;margin-bottom:24px}
.bb-obituary-heading .bb-obituary-label{color:var(--ink);font:500 28px/1.3 var(--serif);margin-bottom:20px}
.bb-deceased .single-nekrolog__date{font-size:18px;line-height:1.8}
.bb-funeral{padding-block:28px;text-align:center}
.bb-funeral h2,.bb-obituary-gallery h2{font-size:clamp(32px,3vw,44px);line-height:1.15}
.bb-funeral-details{font-size:18px;line-height:2;color:var(--ink)}
.bb-funeral-details strong{font-weight:600}
.bb-funeral-details .nekrolog__address{display:inline;padding:0;min-height:0;font:inherit;font-weight:500;vertical-align:baseline;text-decoration:none;color:var(--gold)}
.bb-funeral-details .nekrolog_icon{display:inline-block;width:1em;height:1em;margin-inline-end:.35em;vertical-align:-.16em;background:currentColor}
.bb-funeral-details .br-mobile{display:none}
.bb-obituary .single-nekrolog__divider{max-width:800px;margin:12px auto}
.bb-obituary .single-nekrolog__divider img{width:100%;height:auto;filter:brightness(0) saturate(100%) invert(82%) sepia(15%) saturate(586%) hue-rotate(3deg) brightness(89%) contrast(88%)}
.bb-obituary .single-nekrolog__divider img[src*="/strupczewscy-core/assets/nekrologi/"]{filter:none}
.bb-obituary .single-nekrolog__divider--line{height:1px;background:var(--line);max-width:400px}
.bb-obituary-description{max-width:72ch;padding-block:20px;text-align:center;margin-inline:auto}
.bb-obituary-description a{text-decoration:none;text-underline-offset:4px}
.bb-obituary-gallery{padding-block:32px}
.bb-obituary-gallery .bb-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:0}
.bb-gallery-grid .wp-block-image{margin:0;aspect-ratio:1;overflow:hidden}
.bb-gallery-grid .wp-block-image img{width:100%;height:100%;object-fit:cover}
/* A compact trigger opens two direct actions and the manually selectable URL. */
.bb-share{max-width:520px;margin:24px auto 0;text-align:center}
.bb-share>summary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 14px;border:1px solid var(--control-line);color:var(--ink);font:500 16px/1.4 var(--sans);cursor:pointer;list-style:none;transition:background-color .18s ease,color .18s ease}
.bb-share>summary::-webkit-details-marker{display:none}
.bb-share>summary::after{content:"";width:6px;height:6px;margin-inline-start:3px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg)}
.bb-share[open]>summary::after{transform:rotate(225deg)}
.bb-share>summary:hover,.bb-share[open]>summary{background:var(--surface);color:var(--gold)}
.bb-share>summary .bb-action-icon{width:18px;height:18px}
.bb-share-content{margin-top:12px;padding:18px;border:1px solid var(--control-line);background:var(--surface);text-align:start}
.bb-share-actions{display:flex;gap:10px}
.bb-share-content .bb-share-actions .button{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:1 1 0;min-width:0;width:auto;min-height:44px;padding:10px;font:500 15px/1.4 var(--sans)}
.bb-share-content .bb-copy-link[aria-disabled="true"]{cursor:wait;opacity:.7}
.bb-share-content label{display:block;margin-block:16px 8px;font:400 14px/1.5 var(--sans);color:var(--muted)}
.bb-share-content input{display:block;width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid var(--control-line);border-radius:0;background:var(--paper);color:var(--ink);font:400 14px/1.5 var(--sans)}
.bb-share-content input:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.bb-share-content .bb-copy-status{margin:0;font-size:14px;line-height:1.5;color:var(--ink)}
.bb-copy-status:not(:empty){padding-top:12px}
.bb-share-content [hidden]{display:none!important}
@media(prefers-reduced-motion:reduce){.bb-share>summary{transition:none}}
.bb-back{margin:0;padding-block:12px;text-align:center}
.bb-back .text-link{font-size:16px;min-height:44px}
.bb-obituaries .e-nekrologi{margin-block:28px 16px;font-size:14px}
.bb-empty{padding-block:32px}
.bb-obituaries .nav-links{display:flex;gap:16px;justify-content:center;margin-block:32px}
.bb-obituaries .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:1px solid var(--line);padding:8px 12px}
.bb-obituaries .page-numbers.current{background:var(--gold);color:var(--paper)}
@media(max-width:1000px){.bb-obituary-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.bb-obituary-list{grid-template-columns:1fr;gap:24px}.bb-obituary-card>a{padding-block:20px}.bb-obituary-heading{padding-block:8px}.bb-obituary-art{width:220px;margin-block:20px}.bb-deceased h1{font-size:40px}.bb-funeral{padding-block:20px}.bb-funeral-details{font-size:17px;line-height:1.9}.bb-funeral-details .br-mobile{display:block}.bb-obituary-gallery .bb-gallery-grid{grid-template-columns:1fr 1fr;gap:12px}.bb-single-breadcrumb{padding-block:14px 4px;margin-bottom:8px}.bb-share-content{padding-inline:16px}.bb-share-content .button{width:100%}.bb-obituaries .e-nekrologi{margin-top:32px}}

/* Local Phosphor SVG icons; no icon font or external requests. */
.bb-action-icon { display:inline-block; width:20px; height:20px; flex:none; fill:currentColor; stroke:none; vertical-align:-.2em; }
.bb-back .text-link { gap:10px; border:0; }
.bb-obituary-description a { font-weight:600; text-decoration:none; }
.bb-funeral-details .nekrolog__address:hover, .bb-obituary-description a:hover { color:var(--ink); }
.bb-funeral-details .nekrolog_icon { mask:var(--strup-icon-map) center/contain no-repeat!important; }
.bb-card-body .text-link::after, .bb-obituary-description a::after { content:""; display:inline-block; width:18px; height:18px; margin-inline-start:8px; vertical-align:-.2em; background:currentColor; mask:var(--strup-icon-arrow) center/contain no-repeat; }

.bb-share-actions .button:hover{transform:none}
@media(max-width:360px){.bb-share-content{padding:14px}.bb-share-content .bb-share-actions .button{gap:6px;padding:8px;font-size:14px}}

/* Readable ceremony details on small screens, with compact action controls. */
.bb-obituaries>.container p,.bb-funeral-details { font-size:18px; }
@media(max-width:640px){.bb-funeral-details{font-size:18px;line-height:1.8}}

/* Small original client ornament, separate from the card action. */
.bb-card-body .bb-card-ornament{width:64px;height:auto;margin:18px auto 6px}

.bb-card-body{display:flex;flex:1;flex-direction:column}
.bb-card-body .bb-card-ornament{margin-top:auto;padding-top:18px;box-sizing:content-box}

/* Compact archive cards; ceremony locations remain in the full obituary. */
.bb-obituary-card{border-width:20px;border-image-width:20px;padding:4px 8px}
.bb-obituary-card>a{padding-block:12px 8px}
.bb-card-image{width:160px}
.bb-card-body{padding-top:16px}
.bb-card-body h2{font-size:clamp(28px,2.4vw,34px);min-height:2.3em;margin-bottom:12px}
.bb-card-body p{margin-bottom:8px}
.bb-card-body .bb-card-ornament{width:52px;padding-top:12px;margin-bottom:2px}
.bb-card-body .text-link{align-self:center;justify-content:center;width:fit-content;gap:8px;margin-top:8px}
.bb-card-body .text-link::after{margin-inline-start:0}
@media(max-width:1000px){.bb-obituary-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}}
@media(max-width:640px){.bb-obituary-list{grid-template-columns:minmax(0,1fr)}.bb-obituary-card>a{padding-block:10px}.bb-card-body h2{min-height:0}}

/* Long archive headings and names retain their complete text. */
.bb-archive-header h1{overflow-wrap:break-word;max-width:100%;line-height:1.12}
.bb-obituaries .bb-archive-header{padding-bottom:48px;margin-bottom:24px}
