The maximum value of $\left|\begin{array}{ccc}1 & 1 & 1 \\ 1 & 1+\sin \theta & 1 \\ 1 & 1 & 1+\cos \theta\end{array}\right|$ is $\frac{1}{2}$.