#family-tree:has(#a.empty ~ #e.empty) { grid-template-columns:min-content auto; width:fit-content; margin:auto; }