Let $(X\,\, S)$ and $(Y\,\, T)$ be two topological spaces.
Let $B\subseteq Y$ be arbitrary (not necessarily open).
I'll show the a bit harder inclusion, that
$$ c(q(B))\supseteq q(c(B)) $$
where $c$ is the closure operation, and $q$ operates
on subsets of $Y$ as the inverse of the projection
$X\times Y\rightarrow Y.$
Proof:
$$(x\,\,y)\in q(c(B))\,\, \Leftarrow:\Rightarrow\,\,
y\in c(B)\,\,\Leftarrow:\Rightarrow $$
$$ \forall_{V\in T}
(y\in V\Rightarrow V\cap B\ne\emptyset)\,\, \Leftarrow:\Rightarrow $$
$$ \forall_{U\in S}\forall_{V\in T}\,((x\in U)\wedge(y\in V))\Rightarrow
(U\times V)\cap(X\times B)\,\ne\emptyset\,\,\Leftarrow:\Rightarrow $$
$$ (x\,\,y)\in c(q(B)) $$
Actually, I have proved more, namely the equality
$$ c(q(B)) = c(q(B)) $$
Great!