/* 1.5.0 PDF-source portraits: contained, never an invented replacement face. */
.jp-photo{display:block;width:100%;height:100%;object-fit:contain;background:#eef2e8}.jx-avatar.jp-avatar{width:48px;height:60px;padding:2px;border-radius:11px;overflow:hidden;background:#f4f6ef;border-color:#d2dfc5}.jx-avatar.large.jp-avatar{width:96px;height:120px}.jp-profile{display:block;width:max-content;max-width:100%;margin:0 auto 15px;text-align:center}.jp-profile>img{display:block;width:auto;height:auto;max-height:240px;max-width:min(100%,240px);margin:0 auto;border:1px solid #c5d5b8;border-radius:14px;padding:5px;background:#f7f9f3;box-shadow:0 8px 24px #173f3010;object-fit:contain}.jp-profile>span{display:block;font-size:10px;font-weight:400;color:#657b55;margin-top:7px;line-height:1.7}.jp-profile:hover>img{border-color:#9e7b36}.jp-inline{float:inline-start;width:38px;height:52px;object-fit:contain;border:1px solid #d4e0c7;border-radius:7px;background:#f6f8f1;margin-inline-end:10px;margin-block:2px}.tree-node>a:has(.jp-inline){min-height:83px}.jx-connection .jp-inline{width:30px;height:42px;margin-inline-end:7px}.jp-map-with-photo .jm-card-name{font-size:12px}.jp-map-image{pointer-events:none}.jm-label.jp-has-photo,.fs-map-label.jp-has-photo{padding-inline-start:48px;min-height:82px}.jp-map-thumb{position:absolute;inset-inline-start:7px;top:12px;width:33px;height:48px;object-fit:contain;border-radius:6px;background:#f6f8ef;border:1px solid #cad9b9;pointer-events:none}.jp-has-photo .fs-map-name{font-size:10px;line-height:1.55;-webkit-line-clamp:3}.jp-has-photo .jm-label-name{font-size:11px;line-height:1.5;-webkit-line-clamp:3}.jp-map-thumb[hidden]{display:none}.jp-has-photo .fs-map-birth{font-size:10px}
.fs-person-card.jp-has-photo{display:grid!important;grid-template-columns:44px minmax(0,1fr);grid-template-rows:auto auto auto;align-content:center;column-gap:9px;row-gap:2px}.fs-person-card.jp-has-photo>.jp-story-thumb{grid-column:1;grid-row:1;width:44px;height:54px;object-fit:contain;background:#f7f8ed;border:1px solid #aabc93;border-radius:7px;margin:0;align-self:center}.fs-person-card.jp-has-photo>strong{grid-column:2;grid-row:1;align-self:center}.fs-person-card.jp-has-photo>.fs-birth-badge{grid-column:1/-1;grid-row:2}.fs-person-card.jp-has-photo>.fs-card-numbers{grid-column:1/-1;grid-row:3}.fs-highlights:has(.jp-has-photo){max-height:none}.fs-dialog[data-visual=radial] .fs-map-footer:has(.jp-has-photo){flex-shrink:0}.fs-inspector .jp-profile>img{max-height:210px;max-width:190px}.fs-inspector .jp-profile>span{color:#c4d5b2}.fs-person-card .jp-story-thumb{pointer-events:none}.jp-viewer{width:min(780px,calc(100vw - 26px));max-height:94dvh;overflow:auto;background:#fcfdf9;color:#193e33;border:1px solid #adbf9e;border-radius:19px;padding:20px;box-shadow:0 20px 90px #0c291d55}.jp-viewer::backdrop{background:#0a221cbd;backdrop-filter:blur(5px)}.jp-viewer header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:14px}.jp-viewer h2{font-size:22px;margin:0}.jp-viewer button{border:1px solid #cbdac0;border-radius:10px;min-width:44px;min-height:44px;font-size:28px;background:#eff4e7;color:#174c3e}.jp-large-image{display:flex;justify-content:center;background:#eaf0e5;border-radius:13px;padding:12px;min-height:180px}.jp-large-image img{display:block;max-width:100%;max-height:64dvh;object-fit:contain;border-radius:4px}.jp-viewer p{font-size:13px;line-height:1.85;margin:12px 0}.jp-viewer .jp-notice{font-size:11px;color:#6b7b63}.jp-viewer a{display:inline-block;text-decoration:underline;text-underline-offset:4px;font-size:13px;color:#245f45;padding:8px 0}.jp-viewer :focus-visible{outline:3px solid #ba974e;outline-offset:3px}
@media(max-width:560px){.jx-avatar.jp-avatar{width:37px;height:49px;min-width:37px}.jx-card{gap:8px}.jp-profile>img{max-height:225px}.jm-label.jp-has-photo,.fs-map-label.jp-has-photo{padding-inline-start:43px;padding-inline-end:7px}.jp-map-thumb{width:29px;height:43px;inset-inline-start:6px}.jp-has-photo .jm-label-name,.jp-has-photo .fs-map-name{font-size:10px}.fs-person-card.jp-has-photo{grid-template-columns:32px minmax(0,1fr);column-gap:5px;padding:8px 7px!important}.fs-person-card.jp-has-photo>.jp-story-thumb{width:32px;height:44px}.fs-person-card.jp-has-photo>strong{font-size:10px!important;line-height:1.5!important;-webkit-line-clamp:3!important}.fs-person-card.jp-has-photo>.fs-birth-badge{justify-content:center}.fs-dialog[data-visual=radial] .fs-map-footer .fs-person-card.jp-has-photo{height:auto;min-height:68px}.fs-dialog[data-visual=generations] .fs-highlights:has(.jp-has-photo){bottom:12px}.jp-inline{width:32px;height:44px;margin-inline-end:7px}.jp-viewer{padding:14px}.jp-viewer h2{font-size:19px}.jp-viewer p{font-size:12px}.jp-large-image img{max-height:58dvh}}

.fs-dialog[data-visual=radial] .fs-map-label.jp-has-photo{padding-inline-start:49px;padding-inline-end:9px}.fs-dialog[data-visual=radial] .fs-map-label.jp-has-photo .fs-map-name{font-size:11px;line-height:1.5;-webkit-line-clamp:3}.jm-label.jp-has-photo{padding-inline-start:49px!important}

.jp-gallery-entry{margin:0 3px 16px;display:flex;align-items:center;gap:12px;color:#64795a;font-size:12px}.jp-gallery-link{display:inline-flex;align-items:center;padding:8px 15px;border:1px solid #c7d8b5;background:#f8fbf2;border-radius:11px;color:#2c5d42;font-weight:600;min-height:42px}.jp-gallery{max-width:1250px;margin:auto;padding:30px 20px}.jp-gallery-hero{margin-bottom:25px}.jp-gallery-hero h1{margin:6px 0 12px}.jp-gallery-hero p{font-size:15px;color:#55744c;line-height:1.9}.jp-gallery-hero small{font-size:12px;color:#78886c}.jp-gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:17px}.jp-gallery-card{background:#fff;border:1px solid #d7e4c9;border-radius:17px;padding:14px;text-align:center}.jp-gallery-card img{width:100%;height:220px;object-fit:contain;border-radius:10px;background:#eff4e9}.jp-gallery-card h2{font-size:16px;line-height:1.8;margin:10px 0 4px}.jp-gallery-card p{font-size:13px;color:#60794d}.jp-gallery-card small{display:block;font-size:11px;color:#7a8d66;margin:5px 0 10px}.jp-gallery-card .jx-secondary{width:100%;font-size:12px}@media(max-width:560px){.jp-gallery-entry>span{display:none}.jp-gallery{padding:24px 12px}.jp-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.jp-gallery-card{padding:9px}.jp-gallery-card img{height:165px}.jp-gallery-card h2{font-size:13px}.jp-gallery-hero h1{font-size:26px}}
