We modeled photometric observations of mutual events (eclipses and occultations) between the components of the binary near-Earth asteroid (65803) Didymos, the target of the Double Asteroid Redirection Test (DART) space mission, which were taken from 2003 to 2021. We derived parameters of the modified Keplerian mutual orbit (allowing for a quadratic drift in the mean anomaly, which is presumably caused by an interplay between the BYORP effect and mutual tides, or by differential Yarkovsky force) of the secondary, called Dimorphos, around the Didymos primary and estimated its diameter. The J2000 ecliptic longitude and latitude of the orbital pole are 320.°6 ± 13.°7 and −78.°6 ± 1.°8, respectively, and the orbital period is 11.921624 ± 0.000018 hr at epoch JD 2,455,873.0 (asterocentric UTC; all quoted uncertainties correspond to 3σ, except the density estimate below). We obtained the quadratic drift of the mean anomaly of 0.15 ± 0.14 deg yr−2. The orbital eccentricity is ≤0.03. We determined the ecliptic longitude and latitude of the radius vector of Dimorphos with respect to Didymos at the nominal time of the DART impact to Dimorphos (JD 2,459,849.46875 geocentric UTC) to be 222.°8 ± 7.°0 and −1.°6 ± 4.°2, respectively. We also estimated the bulk density of the system to be 2.37 ± 0.30 g cm−3 (1σ uncertainty).