# How can I change the gap between a plot's frame and its legends?

How can I change the gap (marked by the double arrow below) between a frame and a plot legend?

DensityPlot[Sin[x + y^2], {x, 0, 2 Pi}, {y, 0, 2 Pi},
PlotPoints -> 100,
PlotLegends -> Placed[Automatic, Right]]


I tried to use Placed, but the result was same as Placed -> {Automatic, Right}.

You can remove the margins from around the legend by setting LegendMargins to 0, and use the form $$\{\{e_x, e_y\},\{l_x,l_y\}\}$$ for pos in Placed[legend, pos].
For example, setting $$l_x = .1$$ we get:
DensityPlot[Sin[x + y^2], {x, 0, 2 Pi}, {y, 0, 2 Pi},