I have run into a curious problem using wrapfigure with the tufte layout, in that the caption does not stay on the margin as expected but instead spans the whole width of the caption, as per default behaviour. I have loaded the caption package to no avail. What do have to change to get the tufte behaviour? MWE
\documentclass[a4paper,justified]{tufte-handout}
\usepackage{caption}
\usepackage{wrapfig}
\usepackage{lipsum}
\begin{document}
\lipsum[1]
\begin{wrapfigure}[20]{r}[\marginparwidth]{10cm}
\vspace{9cm}
\captionsetup{width=\marginparwidth}
\caption{Very long caption that spans several lines and son and I have no idea what to write anymore and oh boy is my keyboard noisy}
\end{wrapfigure}
\lipsum[2-3]
\end{document}
What I get looks like this, caption below the figure instead of on the side.

