/* Full-photo variant: the photo stays behind every line of text. */
body.full-photo-cards .atlas .person-node.atlas-card,body.full-photo-cards .directory-grid .person-node{position:relative;background:#243b30;display:flex;flex-direction:column}
body.full-photo-cards .atlas .person-node.atlas-card{position:absolute}
body.full-photo-cards .directory-grid .person-node{height:488px}
body.full-photo-cards.font-large .directory-grid .person-node{height:538px}
body.full-photo-cards.font-xlarge .directory-grid .person-node{height:588px}
body.full-photo-cards .atlas .node-photo,body.full-photo-cards .directory-grid .node-photo{position:absolute;inset:0;width:100%;height:100%;border-radius:9px;background:#243b30;color:#e4c687;padding-bottom:180px}
body.full-photo-cards .atlas .node-photo:has(img),body.full-photo-cards .directory-grid .node-photo:has(img){padding:0}
body.full-photo-cards .node-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 35%}
body.full-photo-cards .atlas .node-copy,body.full-photo-cards .directory-grid .node-copy{position:relative;isolation:isolate;z-index:1;margin-top:auto;padding:18px 14px 24px;color:#fff8e6;-webkit-text-stroke:.6px #08150e;paint-order:stroke fill;text-shadow:0 1px 2px #000,1px 0 1px #000,-1px 0 1px #000;pointer-events:none}
body.full-photo-cards .node-copy:before{content:'';position:absolute;z-index:-1;inset:-40px 0 0;background:linear-gradient(transparent,rgba(10,27,18,.55) 30%,rgba(10,27,18,.82));border-radius:0 0 9px 9px}
body.full-photo-cards .atlas .node-name,body.full-photo-cards .directory-grid .node-name{color:#ffe097;font-weight:700;font-size:17px;-webkit-text-stroke:1px #08150e}
body.full-photo-cards .node-chinese,body.full-photo-cards .node-relation,body.full-photo-cards .node-relation>span,body.full-photo-cards .node-relation small,body.full-photo-cards .node-age,body.full-photo-cards .node-cohort,body.full-photo-cards .node-occupation,body.full-photo-cards .node-sibling-order,body.full-photo-cards .node-connection{color:#fff8e6}
body.full-photo-cards .node-relation-jp{color:#fff8e6!important}
body.full-photo-cards .photo-count,body.full-photo-cards .birth-badge,body.full-photo-cards .node-edit-btn{z-index:2}
body.full-photo-cards .node-edit-btn{background:#fffefa}
body.full-photo-cards .photo-retry{align-self:start;margin-top:50px;color:#fff8e6;background:#17201c;border-radius:6px}
/* Adapted from transitions.dev avatar-group-hover (MIT). No idle animation. */
.atlas .person-node.atlas-card,.directory-grid .person-node{transform-origin:center;transition:transform 220ms cubic-bezier(.22,1,.36,1),box-shadow 220ms cubic-bezier(.22,1,.36,1)}
.atlas .person-node.atlas-card:hover{transform:none}
@media(hover:hover) and (pointer:fine){
 .atlas .person-node.atlas-card:hover,.directory-grid .person-node:hover{transform:translateY(-4px) scale(1.025);box-shadow:0 12px 26px #17201c2b;z-index:4}
}
.atlas .person-node.atlas-card:focus-visible,.directory-grid .person-node:focus-visible{outline:2px solid #986e28;outline-offset:4px;box-shadow:0 10px 22px #17201c25;z-index:4}
@media(prefers-reduced-motion:reduce){
 .atlas .person-node.atlas-card,.directory-grid .person-node{transition:none!important;transform:none!important;animation:none!important}
}
