I am using a latex template that uses a pretty big side margin. In order to be able to display images properly, it offers the option to extend images into that margin, the according width is stored in the constant \widefigurewidth which is calculated as \def\widefigurewidth{\dimexpr(\marginparwidth + \textwidth + \marginparsep)}.
However, it still fits the caption of the image to the textwidth:
\begin{figure*}[h]
\includegraphics[width=\widefigurewidth]{black.pdf}
\caption{Lorem ipsum ...}
\end{figure*}
Lorem ipsum...
I tried explicitly setting the caption width:
\begin{figure*}[h]
\centering
\captionsetup{width=\widefigurewidth}
\includegraphics[width=\widefigurewidth]{black.pdf}
\caption{Lorem ipsum ...}
\end{figure*}
Lorem ipsum...
Apparently, there is still some fixed margin to the right of the box that pushes it to the left. How can I override that?


