Basis for sale of inherited mutual funds after a couple years and mutual fund reinvesting

I inherited four American Funds in 2023.  I know the basis of the original inheritance.  I did not touch them until I cashed them out end of 2025.  American funds automatically reinvests so my amount of shares has grown.  The 1099B has short term and long term gains for each fund due to the reinvesting.  I know that the basis is the date of death value of my mother.  Do I apply that basis to the reinvested shares as well even though they were technically purchased later.  And are all the shares long term even though the recent ones American funds reinvested in are listed as short term gains on the 1099B.

I think I adjust the 1099B to be all long term with the basis the day my mother died for all shares.  But I want to make sure.  If this is true - What records would I need to keep for the adjustment.  Thank You