Magnetic response of YBa2Cu3O7−δ thin film in a perpendicular magnetic field