I have the following latex text written in overleaf document:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\title{test}
\author{spanos.nikolaos }
\date{July 2020}
\begin{document}
\maketitle
\section{Introduction}
\textbf{Assign each array of weights to the relative actor name}
\begin{equation}
\textrm{Daniel Craig} =
\begin{bmatrix} -0.42056742 & -0.3540595 & -0.25417486 & -0.50596726 & -0.29918054\\ -0.23971583 & -0.39325562 & -0.35581827 & -0.3175518 & -0.2992685\\ -0.26149312 & -0.3268542 & -0.34264958 & -0.50005287 & -0.41450888\\ \ldots (m=60)
\end{bmatrix} = shape(5x60)
\end{equation}
\begin{equation}
\textrm{Tobey Maguire} = \begin{bmatrix} -0.30834767 & -0.26681098 & -0.2173222 & -0.11151562 & -0.27951762\\ -0.1721798 & -0.25406063 & -0.38693774 & -0.19798501 & -0.257399\\ -0.05970115 & -0.2399106 & -0.21202469 & -0.28024384 & -0.2577843\\ \ldots (m=60)
\end{bmatrix}= shape(5x60)
\end{equation}
\end{document}
However, both equations go out of the right margin, like is shown in the image below,
I know that there are many similar questions on this matter, however, I am new in Latex and I don't understand how to apply most of the solutions I found on my much simple case. Thank you in advance for any suggestion and I apologize if this is a duplicate.
Update 1 Based on an answer on the comments section, by using this command \textrm{Tobey Maguire} I managed to overcome the extra space and wrong names problem, so I got this,
Update 2 - relative to the reproducible code added
I opened a new Overleaf blank page and I added the code above (with packages) And I got the following shot,
Since the 2 screenshots added earlier are from a pre-defined template I don't know where the page margins are. Also, I don't know the default Latex margins of Overleaf. Because you can see in the screenshots that the letters are much smaller. How can I modify the page margins in Latex?
\ \\
in an equation (it doesn't do anything useful) and words should not be in math italic so\textrm{David Lewis}
but we can not tell you how to make it fit if you do not show an example showing how wide your page is.